Shared Flashcard Set

Details

Lodash
_
14
Computer Science
Professional
08/23/2019

Term
 _.chunk(array, n)
Definition
 creates an array of elements split into subarrays of length n with the remainder in the last group
Term
 _compact(array)
Definition
 creates an array with all falsey values removed
Term
 _concat(array, [values])
Definition
 creates an array joining an array with any additional values
Term
 _difference(array, [values])
Definition
 creates an array of elements in an array that are not included in the listed values
Term
 _.differenceBy(array, [values], function)
Definition
 creates an array of elements in an array that, after applying a function to each element, are not included in the listed values after applying that function to each value
Term
 _differenceWith(array, [values], function)
Definition
 creates an array of elements in array by excluding elements in a way that is determined by a function run on those elements and the listed values
Term
 _.drop(array, n)
Definition
 creates a slice of an array with n elements removed from the beginning
Term
 _.dropRight(array, n)
Definition
 creates a slice of an array with n elements removed from the end
Term
 _.dropRightWhile(array, function)
Definition
 creates a slice of an array that removes elements from the end by applying a condition determined by a function
Term
 _.dropWhile(array, function)
Definition
 creates a slice of an array that removes elements from the beginning by applying a condition determined by a function
Term
 _.fill(array, value, n, m)
Definition
 replaces elements n to m in an array with a value
Term
 _.findIndex(array, function, n)
Definition
 returns the index of the first element that matches a condition determined by a function
Term
 _.findLastIndex(array, function, n)
Definition
 returns the index of the last element that matches a condition determined by a function
Term
 _flatten(array)
Definition
 returns an array with the elements of its subarrays promoted to the top most level
Supporting users have an ad free experience!