Forum Discussion

Coyote's avatar
Coyote
New Contributor II
2 months ago
Solved

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...
  • Coyote's avatar
    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.