Miscellaneous Operators
Operators | Instruction |
---|---|
Preserve | preserve |
Get | get |
Keys | keys |
Preserve
Sometimes you might wish to embed an object or an array in your logic that you don't wish to be traversed. By using "preserve", you can remove the traversal.
Get
Sometimes you may wish to fetch an attribute from an object or array that isn't in the "context" (the data passed into the function). The use cases for this currently are semi-rare, but it can be coupled well with
eachKey
.