Coyote
2 months agoNew Contributor II
Javascript to promote top level lists
I just cannot seem to get this expression to work. Is purpose is to scan for top-level fields of an object and replaces any single-element array value (list) with just that one value. I do not want...
- 2 months ago
I new if I posted I would see something:
Array.isArray(val) - This JavaScript method is not available in Snaplogic
I changed that to "val instanceof Array" and it works. Hope this helps someone.