728x90
목차 📑
lodash
정리
lodash
정리
Array, Collection, Object 별 메서드를 정리하겠습니다.
---------- | --------- | _.assign _.assignIn _.assignInWith _.assignWith _.at |
|
---------- | --------- | --------- | |
_.chunk _.compact _concat |
_.countBy | _.create | |
_.difference _.differenceBy _.differenceWith _.drop _.dropRight _.dropRightWhile _.dropWhile |
--------- | _.defaults _.defaultsDeep |
|
---------- | _.every |
--------- | |
_.fill _.findIndex _.findLastIndex _.flatten _.flattenDeep _.flattenDepth _.fromPairs |
_.filter _.find _.findLast _.flatMap _.flatMapDeep _.flatMapDepth _.forEach _.forEachRight |
_.findKey _.findLastKey _.forIn _.forInRight _.forOwn _.forOwnRight _.functions _.functionsIn |
|
---------- | _.groupBy |
_.get |
|
_.head |
--------- | _.has _.hasIn |
|
_.indexOf _.initial _.intersection _.intersectionBy _.intersectionWith |
_.includes _.invokeMap |
_.invert _.invertBy _.invoke |
|
_.join |
--------- | --------- | |
---------- | _.keyBy | _.keys _.keysIn |
|
_.last _.lastIndexOf |
--------- | --------- | |
---------- | _.map | _.mapKeys _.mapValues _.merge _.mergeWith |
|
_.nth |
--------- | --------- | |
--------- | _.orderBy |
_.omit _.omitBy |
|
_.pull _.pullAll _.pullAllBy _.pullAllWith _.pullAt |
_.partition |
_.pick _.pickBy |
|
---------- | --------- | --------- | |
_.remove _.reverse |
_.reduce _.reduceRight _.reject |
_.result |
|
_.slice _.sortedIndex _.sortedIndexBy _.sortedIndexOf _.sortedLastIndex _.sortedLastIndexBy _.sortedLastIndexOf _.sortedUniq _.sortedUniqBy |
_.sample _.sampleSize _.shuffle _.size _.some _.sortBy |
_.set _.setWith |
|
_.tail _.take _.takeRight _.takeRightWhile _.takeWhile |
--------- | _.toPairs _.toPairsIn _.transform |
|
_.union _.unionBy _.unionWith _.uniq _.uniqBy _.uniqWith |
--------- | _.unset _.update _.updateWith |
|
---------- | --------- | _.values _.valuesIn |
|
_.without |
--------- | --------- | |
_.xor _.xorBy _.xorWith |
--------- | --------- | |
---------- | --------- | --------- | |
_.zip _.zipObject _.zipObjectDeep _.zipWith |
--------- | --------- |
마치며 🍺
비슷한 메서드 끼리 한눈에 비교할 수 있을 것 같아 정리해봤습니다.
도움이 되었으면 좋겠네요. ㅎ
함께하면 좋은 글 😍
728x90
'개발 > javascript' 카테고리의 다른 글
19장 프로토타입 - 생성자 함수 (0) | 2023.11.30 |
---|---|
19장 프로토타입 - hasOwnProperty, Object.create (0) | 2023.11.28 |
21장 빌트인 전역 함수 - encodeURI, decodeURI, encodeURIComponent, decodeComponent (0) | 2023.11.24 |
단축 평가, 옵셔널 체이닝, 함수 인자 초기화 (0) | 2023.11.20 |
lodash Array 메서드 a to z - ( return Array ) (0) | 2023.10.31 |