Files
Agent-n8n/n8n-n8n-1.109.2/packages/workflow/src/expressions/expression-helpers.ts
2025-09-08 04:48:28 +08:00

10 lines
252 B
TypeScript
Executable File

/**
* Checks if the given value is an expression. An expression is a string that
* starts with '='.
*/
export const isExpression = (expr: unknown): expr is string => {
if (typeof expr !== 'string') return false;
return expr.charAt(0) === '=';
};