Returns whether all the members of an array satisfy the specified test. Returns true for empty Arrays.
A function that accepts up to three arguments. The every method calls the callback function for each element in array1 until the callback returns false, or until the end of the array.
Returns the elements of an array that meet the condition specified in a callback function.
Returns the elements of an array that meet the condition specified in a callback function.
A function that accepts up to three arguments. The filter method calls the callback function one time for each element in the array.
Removes all undefined values from the array safely
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
Returns the index of the first element in the array that satisfies the provided testing function. Otherwise, it returns -1, indicating no element passed the test.
findIndex calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns the index at which it was found. Otherwise, find returns -1.
Performs the specified action for each element in an array.
A function that accepts up to three arguments. forEach calls the callback function one time for each element in the array.
Adds all the elements of an array separated by the specified separator string.
Optional
separator: stringA string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
Calls a defined callback function on each element of an array, and returns an array that contains the results. Undefined values will not be included, so keep in mind this does not create a 1:1 map.
// Gets an Array of all existing characters
const characters = playerlist.mapFiltered(plr => plr.Character);
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
A function that accepts up to four arguments. The reduce method calls the callback function one time for each element in the array.
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callback function provides this value as an argument instead of an array value.
Returns whether the specified callback function returns true for any element of an array. Returns false for empty Arrays.
A function that accepts up to three arguments. The some method calls the callback function for each element in array1 until the callback returns true, or until the end of the array.
An array object which cannot be written to.