js-to-json-logic
js-to-json-logic copied to clipboard
'substr' not detected
getting error Unexpected token: 'identifier'
for the line transformJS('attibutes["time"] substr "234"')
There are syntax errors. substr
is a callable expression. It should be used as substr("234")
instead of substr "234"
.
And there are two expressions attibutes["time"]
substr("234")
used with space as a separator which is not a valid js expression