Quick reference
Strings
Arrays
Utilities
String methods
split
split
Split a string by a delimiter to extract specific parts.Example: Extract domain from email address
toLowerCase
toLowerCase
Convert a string to lowercase for consistent formatting.Example: Standardize company name
toUpperCase
toUpperCase
Convert a string to uppercase.Example: Format country code
trim
trim
Remove whitespace from both ends of a string.Example: Clean user input
replace
replace
Replace part of a string with another value.Example: Anonymize email domain
Use
replaceAll() to replace all occurrences, not just the first one.Array methods
length
length
Count how many items are present in an array.Example: Count the number of stakeholders found
includes
includes
Check if a value exists in an array.Example: Check if the product is in an allowed list
slice
slice
Extract a portion of an array.Example: Limit stakeholders to first 5
slice(start, end) extracts elements from index start up to (but not including) end.filter
filter
Create a new array based on a condition.Example: Filter case study URLs
join
join
Convert an array to a string with a delimiter.Example: Convert countries to comma-separated string
map
map
Transform each element in an array.Example: Add company data to stakeholders
- Input
- Output
find
find
Return the first element that matches a condition.Example: Find the CEO in a stakeholders list
Returns
undefined if no element matches. Use optional chaining (?.) to safely access properties.concat
concat
Merge two arrays together.Example: Combine prospect lists
Date and time
new Date()
new Date()
Create a timestamp.Example: Get current timestamp
toLocaleDateString()
toLocaleDateString()
Format date in localized format.Example: Format current date
Pass a locale string for different formats:
toLocaleDateString('en-GB') returns "15/01/2024"Mathematical operations
Basic arithmetic
Basic arithmetic
Perform calculations on numbers.Example: Calculate win rateOther common operations:
Common patterns
Conditional logic
Conditional logic
Use ternary operators for simple conditions.Example: Set priority based on scoreNested conditions:
Object property access
Object property access
Access nested properties using dot notation.Example: Extract the city from a nested address
- Input
- Output
Null checking
Null checking
Safely access properties that might not exist using optional chaining.Example: Get theme with default fallback
- Input
- Output
Default values
Default values
Provide fallback values when data might be missing.Example: Use a default name when none is provided
Tips & best practices
- Use autocomplete — Access the autocomplete feature while writing expressions by pressing
/on your keyboard. - Node connections matter — You cannot use a node’s outputs in an expression when the node isn’t connected to prior nodes in the execution logic.
- Zero-indexed arrays — Arrays in JavaScript are zero-indexed. The first element is at index
0, not1. - Chain methods — You can chain multiple methods together:
{{ nodes.start.email.split('@')[1].toLowerCase() }}

