_.last
  • References/JavaScript/Underscore/Array

last_.last(array, [n]) Returns the last element of an array. Passing n will return the last n elements of the

2025-01-10 15:47:30
_.sortedIndex
  • References/JavaScript/Underscore/Array

sortedIndex_.sortedIndex(list, value, [iteratee], [context]) Uses a binary search to determine the index at which the value

2025-01-10 15:47:30
_.take
  • References/JavaScript/Underscore/Array

first_.first(array, [n]) Alias: head, take Returns the first element of an array

2025-01-10 15:47:30
_.unzip
  • References/JavaScript/Underscore/Array

unzip_.unzip(array) The opposite of zip. Given an array

2025-01-10 15:47:30
_.intersection
  • References/JavaScript/Underscore/Array

intersection_.intersection(*arrays) Computes the list of values that are the intersection of all the arrays. Each value in

2025-01-10 15:47:30
_.union
  • References/JavaScript/Underscore/Array

union_.union(*arrays) Computes the union of the passed-in arrays: the list of unique items, in order, that are present in

2025-01-10 15:47:30
_.difference
  • References/JavaScript/Underscore/Array

difference_.difference(array, *others) Similar to without, but returns the values from array that are not present in

2025-01-10 15:47:30
_.range
  • References/JavaScript/Underscore/Array

range_.range([start], stop, [step]) A function to create flexibly-numbered lists of integers, handy for each and map

2025-01-10 15:47:30
_.lastIndexOf
  • References/JavaScript/Underscore/Array

lastIndexOf_.lastIndexOf(array, value, [fromIndex]) Returns the index of the last occurrence of value in the array

2025-01-10 15:47:30
_.tail
  • References/JavaScript/Underscore/Array

rest_.rest(array, [index]) Alias: tail, drop Returns the rest of the elements in an array

2025-01-10 15:47:30