FLAT
Takes a list of items, and reduces them to a single level list.
Declaration
FLAT(collection) -> flattenedList
Parameters
collection - array - Any list of items.
Return Values
flattenedList - array - A single level list with all sublists stripped.
LENGTH
Return the count of items in the list.
Declaration
LENGTH(listOfItems) -> numberOfItems
Parameters
listOfItems - array - Any list.
Return Values
numberOfItems - number - Number of root level items in the list (see FLAT to flatten).
MERGE_OBJECTS
Combine objects by adding properties of addtional objects to the combination of the previous objects.
Declaration
MERGE_OBJECTS() -> combinedObject
Parameters
Return Values
combinedObject - object - Object created by combining the properies of all the passed in objects.
PRODUCT
Return the product of a list of numbers.
Declaration
PRODUCT(listOfNumbers) -> resultNumber
Parameters
listOfNumbers - array - A list of numbers to multiply together.
Return Values
resultNumber - number - Number value of all the numbers in the list multiplied together.
SHUFFLE
Given a list of objects, return the objects in a random order.
Declaration
SHUFFLE(list) -> shuffledList
Parameters
list - array - A list of any number of any items.
Return Values
shuffledList - array - The resulting shuffled list with all the items re-ordered randomly.
SUM
Sum of all the elments provided.
Declaration
SUM(listOfNumbers) -> sumOfNumbers
Parameters
listOfNumbers - array - A list of numbers.
Return Values
sumOfNumbers - number - Number value representing the sum of all the numbers provided in the list.
FROM_JSON
Convert a valid JSON string into an Airscript value.
Declaration
FROM_JSON(jsonString) -> airscriptValue
Parameters
jsonString - string - a string representing a valid json.
Return Values
airscriptValue - object - The parsed Airscript value.
TO_JSON
Convert an Airscript value into a JSON string.
Declaration
TO_JSON(inputObject) -> jsonString
Parameters
inputObject - any - Any Airscript value.
Return Values
jsonString - string - The input Airscript value serialized as a JSON string.
VALUES
Get the values from all the object's keys.
Declaration
VALUES(object) -> listOfValues
Parameters
object - object - Any object.
Return Values
listOfValues - array - A list containing all the values from the object that was passed in.
Comments
0 comments
Please sign in to leave a comment.