“Array” Methods
- _.chunk(array, [size=1])
- _.compact(array)
- _.concat(array, [values])
- _.difference(array, [values])
- _.differenceBy
- _.differenceWith(array, [values], [comparator])
- _.drop(array, [n=1])
- _.dropRight(array, [n=1])
- _.dropRightWhile(array, [predicate=_.identity])
- _.dropWhile(array, [predicate=_.identity])
- _.fill(array, value, [start=0], [end=array.length])
- _.findIndex
- _.findLastIndex
- _.flatten(array)
- _.flattenDeep(array)
- _.flattenDepth(array, [depth=1])
- _.fromPairs(pairs)
- _.head(array)
- _.indexOf(array, value, [fromIndex=0])
- _.initial(array)
- _.intersection([arrays])
- _.intersectionBy([arrays], [iteratee=_.identity])
- _.intersectionWith([arrays], [comparator])
- _.join(array, [separator=’,’])
- _.last(array)
- _.lastIndexOf(array, value, [fromIndex=array.length-1])
- _.nth(array, [n=0])
- _.pull(array, [values])
- _.pullAll(array, values)
- _.pullAllBy(array, values, [iteratee=_.identity])
- _.pullAllWith(array, values, [comparator])
- _.pullAt(array, [indexes])
- _.remove(array, [predicate=_.identity])
- _.reverse(array)
- _.slice(array, [start=0], [end=array.length])
- _.sortedIndex(array, value)
- _.sortedIndexBy
- _.sortedIndexOf(array, value)
- _.sortedLastIndex(array, value)
- _.sortedLastIndexBy
- _.sortedLastIndexOf(array, value)
- _.sortedUniq(array)
- _.sortedUniqBy(array, [iteratee])
- _.tail(array)
- _.take(array, [n=1])
- _.takeRight(array, [n=1])
- _.takeRightWhile(array, [predicate=_.identity])
- _.takeWhile(array, [predicate=_.identity])
- _.union([arrays])
- _.unionBy([arrays], [iteratee=_.identity])
- _.unionWith([arrays], [comparator])
- _.uniq(array)
- _.uniqBy(array, [iteratee=_.identity])
- _.uniqWith(array, [comparator])
- _.unzip(array)
- _.unzipWith(array, [iteratee=_.identity])
- _.without(array, [values])
- _.xor([arrays])
- _.xorBy([arrays], [iteratee=_.identity])
- _.xorWith([arrays], [comparator])
- _.zip([arrays])
- _.zipObject
- _.zipObjectDeep
- .zipWith([arrays], [iteratee=.identity])
当前内容版权归 lodash.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 lodash.com .