_

_

Source:

Methods

(static) difference(array, valuesopt) → {Array}

Source:
Since:
  • 0.1.0
Creates an array of array values not included in the other given arrays using SameValueZero for equality comparisons. The order and references of result values are determined by the first array.
Example
_.difference([2, 1], [2, 3])
// => [1]

_.difference([2, 1, 3, 8], [2, 4, 8, 9])
// => [ 1, 3 ]
Parameters:
Name Type Attributes Description
array Array The array to inspect.
values Array <optional>
The values to exclude.
Returns:
Returns the new array of filtered values.
Type
Array

(static) drop(array, nopt) → {Array}

Source:
Since:
  • 0.1.0
Creates a slice of array with n elements dropped from the beginning.
Example
_.drop([1, 2, 3])
// => [2, 3]

_.drop([1, 2, 3], 2)
// => [3]
Parameters:
Name Type Attributes Default Description
array Array The array to query.
n Number <optional>
1 The number of elements to drop.
Returns:
Returns the slice of array.
Type
Array

(static) flatten(array) → {Array}

Source:
Since:
  • 0.1.0
Recursively flattens array.
Example
_.flattenDeep([1, [2, [3, [4]], 5]])
// => [1, 2, 3, 4, 5]
Parameters:
Name Type Description
array Array The array to flatten.
Returns:
Returns the new flattened array.
Type
Array