average
Parameters:
- array
Returns the average of the array elements.
compact
Parameters:
- array
- strict
Returns an array with truthy values.
drop
Parameters:
- array
- digit
Removes elements of the array.
head
Parameters:
- array
Returns the first element of the array.
identifier
Parameters:
- array
Returns a new unique identifier based on passed in identifiers.
median
Parameters:
- array
Returns the median of the array elements.
pluck
Parameters:
- array
Returns a list of property values from an array of objects.
rotate
Parameters:
- array
- digit
Rotates the elements on the array. When second parameter is negative, shifting starts from the end of the array.
sample
Returns random element of the array.
slice
Parameters:
- array
- start
- end
Extracts a fragment of the array.
sum
Parameters:
- array
Returns the sum of the array elements.
take
Parameters:
- array
- digit
Takes elements from the array based on the second parameter, starting from the beginning of the array.
unique
Parameters:
- array
- iteratee
Returns an array with unique elements.
first
Parameters:
- array
Returns the first element of the array.
second
Parameters:
- array
Returns the second element of the array.
third
Parameters:
- array
Returns the third element of the array.
fourth
Parameters:
- array
Returns the fourth element of the array.
fifth
Parameters:
- array
Returns the fifth element of the array.
sixth
Parameters:
- array
Returns the sixth element of the array.
seventh
Parameters:
- array
Returns the seventh element of the array.
eigth
Parameters:
- array
Returns the eigth element of the array.
ninth
Parameters:
- array
Returns the ninth element of the array.
tenth
Parameters:
- array
Returns the tenth element of the array.
last
Parameters:
- array
Returns the last element of the array.
nth
Parameters:
- array
- position
Returns the element located at the passed position. When position is negative it searches from the end of the array.
intersection
Parameters:
- arrays
Returns an array containing elements common to all arrays that have been passed to the function.
difference
Parameters:
- array
- arrays
Returns an array containing elements that do not occur in other arrays.
duplicates
Parameters:
- array
Returns an array containing repeated elements.
symdifference
Parameters:
- arrays
Returns an array of elements that are not part of intersection.
comma
Parameters:
- array
- number
Returns a string created by joining array elements with comma and optional spaces.
union
Parameters:
- arrays
Returns an array of unique values.
partition
Parameters:
- array
- predicate
Returns an array of elements split into two groups, the first of which contains elements predicate returns truthy for, the second of which contains elements predicate returns falsey for. The predicate has one argument.
range
Parameters:
- number
- number
Returns an array of numbers within the range.