...
Table of Contents | ||||
---|---|---|---|---|
|
sl.ensureArray
Description | Takes an argument and returns that argument unchanged if it is an array, otherwise it should return the argument in an array. | ||
---|---|---|---|
Syntax |
| ||
Example | Expression: Result: [1,2,3] |
sl.gethostbyname
Description | Returns an array of IPv4 or IPv6 addresses for the given hostname or IP address. | ||
---|---|---|---|
Syntax |
| ||
Example | Expression: Result:
|
sl.range
Description | This function returns an array of numbers for the given range. If given a single
| ||||||
---|---|---|---|---|---|---|---|
Syntax |
| ||||||
Example | Expression: Result:
Expression: Result:
Expression: Result:
|
sl.zip
Description | This function takes arrays of the same length and returns an array of tuples that contain the values from the input arrays at the same indexes. This works similar to the Python zip() function. | ||||
---|---|---|---|---|---|
Syntax |
| ||||
Example | Expression: Result:
|
sl.zipObject
Description | This function returns an object composed from key-value pairs that accepts two arrays, the first with the properties and the second with values. This works similar to the Lodash zipObject function. | ||||
---|---|---|---|---|---|
Syntax |
| ||||
Examples | Expression: Result:
Expression: Result:
|
...