본문 바로가기
개발/javascript

lodash Array, Collection, Object 메서드 모음

by 올럭Dev 2023. 11. 8.
728x90

Pasted image 20231108231206.png

목차 📑

  • lodash 정리

lodash 정리

Array, Collection, Object 별 메서드를 정리하겠습니다.

initial
Array
Collection
Object
a
---------- --------- _.assign
_.assignIn
_.assignInWith
_.assignWith
_.at
b
---------- --------- ---------
c
_.chunk
_.compact
_concat
_.countBy _.create
d
_.difference
_.differenceBy
_.differenceWith
_.drop
_.dropRight
_.dropRightWhile
_.dropWhile
--------- _.defaults
_.defaultsDeep
e
---------- _.every
---------
f
_.fill
_.findIndex
_.findLastIndex
_.flatten
_.flattenDeep
_.flattenDepth
_.fromPairs
_.filter
_.find
_.findLast
_.flatMap
_.flatMapDeep
_.flatMapDepth
_.forEach
_.forEachRight
_.findKey
_.findLastKey
_.forIn
_.forInRight
_.forOwn
_.forOwnRight
_.functions
_.functionsIn
g
---------- _.groupBy
_.get
h
_.head
--------- _.has
_.hasIn
i
_.indexOf
_.initial
_.intersection
_.intersectionBy
_.intersectionWith
_.includes
_.invokeMap
_.invert
_.invertBy
_.invoke
j
_.join
--------- ---------
k
---------- _.keyBy _.keys
_.keysIn
l
_.last
_.lastIndexOf
--------- ---------
m
---------- _.map _.mapKeys
_.mapValues
_.merge
_.mergeWith
n
_.nth
--------- ---------
o
--------- _.orderBy
_.omit
_.omitBy
p
_.pull
_.pullAll
_.pullAllBy
_.pullAllWith
_.pullAt
_.partition
_.pick
_.pickBy
q
---------- --------- ---------
r
_.remove
_.reverse
_.reduce
_.reduceRight
_.reject
_.result
s
_.slice
_.sortedIndex
_.sortedIndexBy
_.sortedIndexOf
_.sortedLastIndex
_.sortedLastIndexBy
_.sortedLastIndexOf
_.sortedUniq
_.sortedUniqBy
_.sample
_.sampleSize
_.shuffle
_.size
_.some
_.sortBy
_.set
_.setWith
t
_.tail
_.take
_.takeRight
_.takeRightWhile
_.takeWhile
--------- _.toPairs
_.toPairsIn
_.transform
u
_.union
_.unionBy
_.unionWith
_.uniq
_.uniqBy
_.uniqWith
--------- _.unset
_.update
_.updateWith
v
---------- --------- _.values
_.valuesIn
w
_.without
--------- ---------
x
_.xor
_.xorBy
_.xorWith
--------- ---------
y
---------- --------- ---------
z
_.zip
_.zipObject
_.zipObjectDeep
_.zipWith
--------- ---------

마치며 🍺

비슷한 메서드 끼리 한눈에 비교할 수 있을 것 같아 정리해봤습니다.
도움이 되었으면 좋겠네요. ㅎ

함께하면 좋은 글 😍

lodash Array 메서드 a to z - ( return Array )

728x90