Strictly check that the provided value is a non empty array or throw an exception
A value to check
The name of the value to be shown at the beginning of the exception message
The rest of the exception message
void
Get all the duplicate values on the provided array Duplicate values with different data types won't be considered as equal ('1', 1 will return false)
An array containing some elements to test
list with all the elements that are duplicated on the provided array
Check if the given array contains duplicate values or not. Duplicate values with different data types won't be considered as equal ('1', 1 will return false)
An array containing some elements to test
True if there are duplicate values, false otherwise
Tells if the given value is an array or not
A value to check
true if the given value is an array, false otherwise
Check if two provided arrays are identical (have exactly the same elements and in the same order).
First array to compare
Second array to compare
true if arrays are exactly the same, false if not
Check if the provided string is found inside the provided array structure. This method will recursively search inside all the provided array elements and test if the provided string is found. Search will be performed inside any array structures like arrays or other objects. Result will be positive even if any string on the array contains the searched text as a substring.
The array where the string will be looked for
The string that will be searched on the array
True (default) to perform a case sensitive search, false otherwise
True if the string is found anywhere inside the provided array, false otherwise
remove all the duplicate values on the provided array Duplicate values with different data types won't be considered as equal ('1', 1 will not be removed)
An array with possible duplicate values
The same provided array but without duplicate elements
Remove the specified item from an array
An array (it will not be modified by this method)
The element that must be removed from the given array
The provided array but without the specified element (if found). Note that originally received array is not modified by this method
Generated using TypeDoc
Utilities to perform common array operations