Core functions Flashcards
++
Concatenates two values.
–
Removes specified values from an input value.
abs
Returns the absolute value of a number.
avg
Returns the average of numbers listed in an array.
ceil
Rounds a number up to the nearest whole number.
contains
Returns true if an input contains a given value, false if not.
daysBetween
Returns the number of days between two dates.
distinctBy
Iterates over an array and returns the unique elements in it.
endsWith
Returns true if a string ends with a provided substring, false if not.
entriesOf
Returns an array of key-value pairs that describe the key, value, and any attributes in the input object.
filter
Iterates over an array and applies an expression that returns matching values.
filterObject
Iterates a list of key-value pairs in an object and applies an expression that returns only matching objects, filtering out the rest from the output.
find
Returns indices of an input that match a specified value.
flatMap
Iterates over each item in an array and flattens the results.
flatten
Turns a set of subarrays (such as [ [1,2,3], [4,5,[6]], [], [null] ]) into a single, flattened array (such as [ 1, 2, 3, 4, 5, [6], null ]).
floor
Rounds a number down to the nearest whole number.
groupBy
Returns an object that groups items from an array based on specified criteria, such as an expression or matching selector.
indexOf
Returns the index of the first occurrence of the specified element in this array, or -1 if this list does not contain the element.
isBlank
Returns true if the given string is empty (“”), completely composed of whitespaces, or null. Otherwise, the function returns false.
isDecimal
Returns true if the given number contains a decimal, false if not.
isEmpty
Returns true if the given input value is empty, false if not.
isEven
Returns true if the number or numeric result of a mathematical operation is even, false if not.
isInteger
Returns true if the given number is an integer (which lacks decimals), false if not.
isLeapYear
Returns true if it receives a date for a leap year, false if not.
isOdd
Returns true if the number or numeric result of a mathematical operation is odd, false if not.
joinBy
Merges an array into a single string value and uses the provided string as a separator between each item in the list.
keysOf
Returns an array of keys from key-value pairs within the input object.
lastIndexOf
Returns the index of the last occurrence of the specified element in a given array or -1 if the array does not contain the element.