Functions38 public, 0 private

Performs a deep search in the provided array for the specified value. The matching is using the case insensitive "contains" operator. Returns an array of structs with information about the path for all elements with the specified value: { Key: string, Value: string, Path: string }
publicarrayarrayContainsValue
Array to search through.
requiredarraysource
Simple value to search for.
requiredstringvalue
Path to prepend in every path information.
stringpath
Copies the specified range in the provided array to a new array.
publicarrayarrayCopyOfRange
requiredarraysource
requirednumericstartIndex
requirednumericendIndex
booleandeepCopyfalse
Compares the provided arrays with each other (case sensitive) and returns an array with elements not appearing in both arrays.
publicarrayarrayDifference
requiredarrayarray1
requiredarrayarray2
Compares the provided arrays with each other (case insensitive) and returns an array with elements not appearing in both arrays.
publicarrayarrayDifferenceNoCase
requiredarrayarray1
requiredarrayarray2
Returns the index of the first element matching the specified ID. The ID is retrieved using the public accessor getID(). Complex elements without the public accessor will be skipped. Numeric elements are also considered.
publicnumericarrayFindByID
Array to search through.
requiredarraysource
ID to search for.
requirednumericid
Returns the index of the first element matching the specified (simple) value. The matching is type insensitive.
publicnumericarrayFindValue
Array to search through.
requiredarraysource
Simple value to search for.
requiredstringvalue
Returns the first element of the provided array. May return NULL if the provided array is invalid or empty.
publicanyarrayFirst
Array to return the first element from.
requiredanysource
Hashes all elements of the provided array. Returns the hash of all hashed elements combined.
publicstringarrayHash
Array to hash.
requiredarraysource
Algorithm to use for the hashing.
stringalgorithmMD5
Encoding to use for the hashing.
stringencodingUTF-8
Returns the last element of the provided array. May return NULL if the provided array is invalid or empty.
publicanyarrayLast
Array to return the first element from.
requiredanysource
Converts an array of objects to a struct using the public accessor for ID as key.
publicstructarrayObjectToStruct
requiredarraysource
Appends the specified string to each simple value in the provided array. Returns a modified copy of the provided array.
publicarrayarrayAppendInValues
requiredarraytarget
requiredstringappend
Prepends the specified string to each simple value in the provided array. Returns a modified copy of the provided array.
publicarrayarrayPrependInValues
requiredarraytarget
requiredstringprepend
Searches in the provided array using the specified regular expression and returns the index of the first occurrence.
publicnumericarrayREfind
requiredstringexpression
requiredarraysource
Searches in the provided array using the specified regular expression and returns the index of the first occurrence.
publicnumericarrayREfindNoCase
requiredstringexpression
requiredarraysource
Filters the provided array using the specified regular expression.
publicarrayarrayREfilter
requiredstringexpression
requiredarraysource
Filters the provided array using the specified regular expression.
publicarrayarrayREfilterNoCase
requiredstringexpression
requiredarraysource
Removes all common elements in the first array.
publicarrayarrayRemoveAll
Array to remove the elements in.
requiredarrayarray1
Array with elements to delete in the previous array.
requiredarrayarray2
structOPTIONS{}
optionbooleannormalizefalse
Attempts to remove the element with the specified ID in the provided array. Returns the array after removal.
publicarrayarrayRemoveByID
requiredarraysource
requiredanyid
structOPTIONS{}
optionbooleanbyReftrue
publicarrayarrayRemoveByIndex
Array to remove the indices from.
requiredarraytarget
Array of indices to remove.
requiredarraytoRemove
Removes all duplicates in the provided array.
publicarrayarrayRemoveDuplicates
The array to remove duplicates from.
requiredarraysource
Removes all duplicates in the provided array by using the specified selector.
publicarrayarrayRemoveDuplicatesBySelector
The array to remove duplicates from.
requiredarraysource
The method call to evaluate, e.g.: getID()
requiredstringselector
Removes all simple items in the provided array. Returns the array without simple items.
publicarrayarrayRemoveSimpleItems
requiredarraysource
structOPTIONS{}
optionbooleanbyReftrue
Removes all complex items in the provided array. Returns the array without complex items.
publicarrayarrayRemoveComplexItems
requiredarraysource
structOPTIONS{}
optionbooleanbyReftrue
Removes all empty values in the provided array. Strings containing only whitespaces, are considered empty.
publicarrayarrayRemoveEmpty
requiredarraytarget
Removes the specified simple value in the provided array. Ignores complex elements. This function is type insensitive.
publicarrayarrayRemoveValue
requiredarrayarray
requiredstringvalue
stringscopeONE
publicarrayarrayReplaceValue
requiredarraysource
requiredstringfind
requiredstringreplace
Reverses the order of items in the array.
publicarrayarrayReverse
requiredarraytarget
Shuffles the order of the items in the provided array.
publicarrayarrayShuffle
requiredarraytarget
Shrinks the provided array by removing entries based on the specified method.
publicarrayarrayShrink
requiredarraytarget
requirednumericsize
"LAST", "RANDOM"methodLAST
Sorts the provided array by the length of its values.
publicarrayarraySortByLength
Array to sort by.
requiredarrayvalue
Type to sort by.
"ASC", "DESC"sortTypeASC
Sorts the provided array using the specified selector.
publicarrayarraySortBySelector
requiredarraysource
requiredstringselector
stringorderASC
Sorts the provided array using natural sort.
publicarrayarraySortNatural
requiredarrayarray
"NUMERIC", "TEXT", "TEXTnoCASE"sortTypeTEXT
"ASC", "DESC"sortOrderASC
Transforms the provided array to a JavaScript compatible string.
publicstringarrayToJavaScript
requiredarrayarray
stringquote'
Failsafe wrapper for the native [arrayToList] function.
publicstringarrayToList
Array to convert.
requiredanyarray
Delimiter used for the list.
stringdelimiter,
Keep empty values.
booleanincludeEmptyFieldsfalse
structOPTIONS{}
optionstringprepend
character(s) to append in simple value elements
optionstringappend
try to invoke toString() method on objects
optionbooleantoStringfalse
Trims all simple values in the provided array. Complex values are ignored.
publicarrayarrayTrimValues
Array with the values to trim.
requiredarrayarray
How to trim the values. SIMPLE: Remove leading and trailing whitespaces. EXTENDED: Remove leading, trailing and consecutive whitespaces.
stringlevelSIMPLE
Wraps each simple value in the provided array with the specified string. Returns a modified copy of the provided array.
publicarrayarrayWrapValues
requiredarraytarget
requiredstringprefix
If omitted, prefix is used as postfix.
stringpostfix
Returns if the array consists of empty strings and only empty strings.
publicbooleanisArrayWithEmptyStrings
Array to inspect.
requiredanysource
Retrieves all values of the specified column in the provided query. Returns an array with the fetched values.
publicarrayvalueArray
Query to extract the data from.
requiredqueryquery
Name of the column to get values from.
requiredstringcolumn