A modern JavaScript utility library delivering modularity, performance, & extras.
GitHub Stars
fp87 KB
_apply.js714 B
_arrayAggregator.js684 B
_arrayEach.js537 B
_arrayEachRight.js528 B
_arrayEvery.js597 B
_arrayFilter.js632 B
_arrayIncludes.js526 B
_arrayIncludesWith.js615 B
_arrayLikeKeys.js2 KB
_arrayMap.js556 B
_arrayPush.js437 B
_arrayReduce.js787 B
_arrayReduceRight.js777 B
_arraySample.js363 B
_arraySampleSize.js500 B
_arrayShuffle.js365 B
_arraySome.js594 B
_asciiSize.js271 B
_asciiToArray.js257 B
_asciiWords.js404 B
_assignMergeValue.js582 B
_assignValue.js899 B
_assocIndexOf.js487 B
_baseAggregator.js746 B
_baseAssign.js470 B
_baseAssignIn.js482 B
_baseAssignValue.js625 B
_baseAt.js569 B
_baseClamp.js571 B
_baseClone.js5 KB
_baseConforms.js484 B
_baseConformsTo.js718 B
_baseCreate.js686 B
_baseDelay.js672 B
_baseDifference.js2 KB
_baseEach.js455 B
_baseEachRight.js491 B
_baseEvery.js625 B
_baseExtremum.js897 B
_baseFill.js843 B
_baseFilter.js590 B
_baseFindIndex.js766 B
_baseFindKey.js747 B
_baseFlatten.js1 KB
_baseFor.js593 B
_baseForOwn.js456 B
_baseForOwnRight.js486 B
_baseForRight.js477 B
_baseFunctions.js552 B
_baseGet.js616 B
_baseGetAllKeys.js739 B
_baseGetTag.js792 B
_baseGt.js357 B
_baseHas.js559 B
_baseHasIn.js374 B
_baseIndexOf.js659 B
_baseIndexOfWith.js660 B
_baseInRange.js612 B
_baseIntersection.js2 KB
_baseInverter.js736 B
_baseInvoke.js789 B
_baseIsArguments.js488 B
_baseIsArrayBuffer.js504 B
_baseIsDate.js504 B
_baseIsEqual.js1019 B
_baseIsEqualDeep.js3 KB
_baseIsMap.js478 B
_baseIsMatch.js2 KB
_baseIsNaN.js296 B
_baseIsNative.js1 KB
_baseIsRegExp.js511 B
_baseIsSet.js478 B
_baseIsTypedArray.js2 KB
_baseIteratee.js895 B
_baseKeys.js776 B
_baseKeysIn.js870 B
_baseLodash.js178 B
_baseLt.js354 B
_baseMap.js668 B
_baseMatches.js710 B
_baseMatchesProperty.js1 KB
_baseMean.js568 B
_baseMerge.js1 KB
_baseMergeDeep.js3 KB
_baseNth.js483 B
_baseOrderBy.js1 KB
_basePick.js501 B
_basePickBy.js791 B
_baseProperty.js360 B
_basePropertyDeep.js391 B
_basePropertyOf.js358 B
_basePullAll.js1 KB
_basePullAt.js939 B
_baseRandom.js541 B
_baseRange.js850 B
_baseReduce.js909 B
_baseRepeat.js952 B
_baseRest.js559 B
_baseSample.js359 B
_baseSampleSize.js548 B
_baseSet.js1 KB
_baseSetData.js456 B
_baseSetToString.js641 B
_baseShuffle.js371 B
_baseSlice.js756 B
_baseSome.js619 B
_baseSortBy.js543 B
_baseSortedIndex.js1 KB
_baseSortedIndexBy.js2 KB
_baseSortedUniq.js758 B
_baseSum.js600 B
_baseTimes.js504 B
_baseToNumber.js539 B
_baseToPairs.js537 B
_baseToString.js1 KB
_baseUnary.js332 B
_baseUniq.js2 KB
_baseUnset.js580 B
_baseUpdate.js605 B
_baseValues.js534 B
_baseWhile.js933 B
_baseWrapperValue.js857 B
_baseXor.js1 KB
_baseZipObject.js660 B
_cacheHas.js337 B
_castArrayLikeObject.js381 B
_castFunction.js326 B
_castPath.js569 B
_castRest.js348 B
_castSlice.js517 B
_charsEndIndex.js600 B
_charsStartIndex.js636 B
_cloneArrayBuffer.js449 B
_cloneBuffer.js1 KB
_cloneDataView.js507 B
_cloneRegExp.js439 B
_cloneSymbol.js524 B
_cloneTypedArray.js527 B
_compareAscending.js1 KB
_compareMultiple.js2 KB
_composeArgs.js1 KB
_composeArgsRight.js1 KB
_copyArray.js454 B
_copyObject.js1 KB
_copySymbols.js446 B
_copySymbolsIn.js470 B
_coreJsData.js157 B
_countHolders.js469 B
_createAggregator.js789 B
_createAssigner.js1 KB
_createBaseEach.js886 B
_createBaseFor.js648 B
_createBind.js853 B
_createCaseFirst.js811 B
_createCompounder.js635 B
_createCtor.js1 KB
_createCurry.js1 KB
_createFind.js853 B
_createFlow.js2 KB
_createHybrid.js3 KB
_createInverter.js497 B
_createMathOperation.js1 KB
_createOver.js780 B
_createPadding.js1 KB
_createPartial.js1 KB
_createRange.js864 B
_createRecurry.js2 KB
_createRelationalOperation.js578 B
_createRound.js1 KB
_createSet.js501 B
_createToPairs.js789 B
_createWrap.js4 KB
_customDefaultsAssignIn.js934 B
_customDefaultsMerge.js1 KB
_customOmitClone.js475 B
_DataView.js210 B
_deburrLetter.js3 KB
_defineProperty.js233 B
_equalArrays.js3 KB
_equalByTag.js4 KB
_equalObjects.js3 KB
_escapeHtmlChar.js479 B
_escapeStringChar.js521 B
_flatRest.js457 B
_freeGlobal.js173 B
_getAllKeys.js455 B
_getAllKeysIn.js488 B
_getData.js325 B
_getFuncName.js756 B
_getHolder.js280 B
_getMapData.js400 B
_getMatchData.js573 B
_getNative.js483 B
_getPrototype.js163 B
_getRawTag.js1 KB
_getSymbols.js886 B
_getSymbolsIn.js754 B
_getTag.js2 KB
_getValue.js325 B
_getView.js1 KB
_getWrapDetails.js479 B
_Hash.js747 B
_hashClear.js281 B
_hashDelete.js445 B
_hashGet.js772 B
_hashHas.js626 B
_hashSet.js598 B
_hasPath.js1 KB
_hasUnicode.js949 B
_hasUnicodeWord.js491 B
_initCloneArray.js692 B
_initCloneByTag.js2 KB
_initCloneObject.js486 B
_insertWrapDetails.js748 B
_isFlattenable.js608 B
_isIndex.js759 B
_isIterateeCall.js877 B
_isKey.js880 B
_isKeyable.js430 B
_isLaziable.js712 B
_isMaskable.js395 B
_isMasked.js564 B
_isPrototype.js480 B
_isStrictComparable.js414 B
_iteratorToArray.js360 B
_lazyClone.js657 B
_lazyReverse.js491 B
_lazyValue.js2 KB
_LazyWrapper.js773 B
_ListCache.js869 B
_listCacheClear.js218 B
_listCacheDelete.js775 B
_listCacheGet.js420 B
_listCacheHas.js403 B
_listCacheSet.js553 B
_LodashWrapper.js611 B
_Map.js195 B
_MapCache.js869 B
_mapCacheClear.js393 B
_mapCacheDelete.js450 B
_mapCacheGet.js330 B
_mapCacheHas.js382 B
_mapCacheSet.js489 B
_mapToArray.js363 B
_matchesStrictComparable.js574 B
_memoizeCapped.js633 B
_mergeData.js3 KB
_metaMap.js143 B
_nativeCreate.js187 B
_nativeKeys.js204 B
_nativeKeysIn.js490 B
_nodeUtil.js995 B
_objectToString.js565 B
_overArg.js382 B
_overRest.js1 KB
_parent.js436 B
_Promise.js207 B
_realNames.js98 B
_reEscape.js105 B
_reEvaluate.js108 B
_reInterpolate.js115 B
_reorder.js900 B
_replaceHolders.js785 B
_root.js300 B
_safeGet.js456 B
_Set.js195 B
_SetCache.js632 B
_setCacheAdd.js424 B
_setCacheHas.js316 B
_setData.js645 B
_setToArray.js345 B
_setToPairs.js364 B
_setToString.js392 B
_setWrapToString.js847 B
_shortOut.js941 B
_shuffleSelf.js689 B
_Stack.js734 B
_stackClear.js254 B
_stackDelete.js405 B
_stackGet.js271 B
_stackHas.js323 B
_stackSet.js853 B
_strictIndexOf.js600 B
_strictLastIndexOf.js576 B
_stringSize.js432 B
_stringToArray.js450 B
_stringToPath.js840 B
_Symbol.js118 B
_toKey.js523 B
_toSource.js556 B
_Uint8Array.js130 B
_unescapeHtmlChar.js493 B
_unicodeSize.js2 KB
_unicodeToArray.js2 KB
_unicodeWords.js3 KB
_updateWrapDetails.js1 KB
_WeakMap.js207 B
_wrapperClone.js658 B
add.js469 B
after.js1 KB
array.js2 KB
ary.js857 B
assign.js2 KB
assignIn.js906 B
assignInWith.js1 KB
assignWith.js1 KB
at.js559 B
attempt.js931 B
before.js1 KB
bind.js2 KB
bindAll.js1 KB
bindKey.js2 KB
camelCase.js701 B
capitalize.js529 B
castArray.js768 B
ceil.js507 B
chain.js851 B
chunk.js1 KB
clamp.js890 B
clone.js1 KB
cloneDeep.js679 B
cloneDeepWith.js1 KB
cloneWith.js1 KB
collection.js1009 B
commit.js641 B
compact.js681 B
concat.js1007 B
cond.js2 KB
conforms.js978 B
conformsTo.js954 B
constant.js528 B
core.js112 KB
core.min.js12 KB
countBy.js1 KB
create.js1 KB
curry.js2 KB
curryRight.js1 KB
date.js48 B
debounce.js6 KB
deburr.js2 KB
defaults.js2 KB
defaultsDeep.js839 B
defaultTo.js608 B
defer.js693 B
delay.js795 B
difference.js1 KB
differenceBy.js1 KB
differenceWith.js1 KB
divide.js491 B
drop.js890 B
dropRight.js927 B
dropRightWhile.js1 KB
dropWhile.js1 KB
each.js39 B
eachRight.js44 B
endsWith.js1 KB
entries.js39 B
entriesIn.js41 B
eq.js799 B
escape.js1 KB
escapeRegExp.js871 B
every.js2 KB
extend.js40 B
extendWith.js44 B
fill.js1 KB
filter.js1 KB
find.js1 KB
findIndex.js2 KB
findKey.js1 KB
findLast.js730 B
findLastIndex.js2 KB
findLastKey.js1 KB
first.js36 B
flatMap.js812 B
flatMapDeep.js796 B
flatMapDepth.js901 B
flatten.js489 B
flattenDeep.js577 B
flattenDepth.js787 B
flip.js636 B
floor.js521 B
flow.js666 B
flowRight.js590 B
forEach.js1 KB
forEachRight.js924 B
forIn.js1 KB
forInRight.js929 B
forOwn.js992 B
forOwnRight.js866 B
fp.js101 B
fromPairs.js596 B
function.js780 B
functions.js685 B
functionsIn.js714 B
get.js884 B
groupBy.js1 KB
gt.js596 B
gte.js635 B
has.js757 B
hasIn.js753 B
head.js415 B
identity.js370 B
includes.js2 KB
index.js37 B
indexOf.js1 KB
initial.js461 B
inRange.js1 KB
intersection.js953 B
intersectionBy.js1 KB
intersectionWith.js1 KB
invert.js1 KB
invertBy.js2 KB
invoke.js634 B
invokeMap.js1 KB
isArguments.js1 KB
isArray.js488 B
isArrayBuffer.js732 B
isArrayLike.js830 B
isArrayLikeObject.js742 B
isBoolean.js681 B
isBuffer.js1 KB
isDate.js642 B
isElement.js574 B
isEmpty.js2 KB
isEqual.js986 B
isEqualWith.js1 KB
isError.js961 B
isFinite.js793 B
isFunction.js993 B
isInteger.js669 B
isLength.js802 B
isMap.js613 B
isMatch.js1 KB
isMatchWith.js1 KB
isNaN.js911 B
isNative.js1 KB
isNil.js426 B
isNull.js381 B
isNumber.js886 B
isObject.js733 B
isObjectLike.js614 B
isPlainObject.js2 KB
isRegExp.js646 B
isSafeInteger.js949 B
isSet.js613 B
isString.js723 B
isSymbol.js682 B
isTypedArray.js695 B
isUndefined.js416 B
isWeakMap.js631 B
isWeakSet.js643 B
iteratee.js2 KB
join.js693 B
kebabCase.js659 B
keyBy.js1 KB
keys.js884 B
keysIn.js778 B
lang.js2 KB
last.js401 B
lastIndexOf.js1 KB
lodash.js530 KB
lodash.min.js71 KB
lowerCase.js622 B
lowerFirst.js470 B
lt.js590 B
lte.js629 B
map.js2 KB
mapKeys.js1 KB
mapValues.js1 KB
matches.js1 KB
matchesProperty.js1 KB
math.js482 B
max.js614 B
maxBy.js991 B
mean.js422 B
meanBy.js879 B
memoize.js2 KB
merge.js1 KB
mergeWith.js1 KB
method.js860 B
methodOf.js912 B
min.js614 B
minBy.js991 B
mixin.js2 KB
multiply.js530 B
negate.js1 KB
next.js836 B
noop.js250 B
now.js520 B
nth.js671 B
nthArg.js730 B
number.js120 B
object.js2 KB
omit.js2 KB
omitBy.js854 B
once.js665 B
orderBy.js2 KB
over.js558 B
overArgs.js2 KB
overEvery.js654 B
overSome.js647 B
package.json578 B
pad.js1 KB
padEnd.js1017 B
padStart.js1 KB
parseInt.js1 KB
partial.js2 KB
partialRight.js2 KB
partition.js1 KB
pick.js629 B
pickBy.js1 KB
plant.js1016 B
property.js793 B
propertyOf.js732 B
pull.js758 B
pullAll.js710 B
pullAllBy.js1 KB
pullAllWith.js1 KB
pullAt.js1 KB
random.js2 KB
range.js1 KB
rangeRight.js862 B
rearg.js1023 B
reduce.js2 KB
reduceRight.js1 KB
reject.js1 KB
remove.js1 KB
repeat.js893 B
replace.js754 B
rest.js1 KB
result.js1 KB
reverse.js844 B
round.js501 B
sample.js551 B
sampleSize.js1 KB
seq.js507 B
set.js960 B
setWith.js1 KB
shuffle.js678 B
size.js1 KB
slice.js1 KB
snakeCase.js638 B
some.js2 KB
sortBy.js2 KB
sortedIndex.js626 B
sortedIndexBy.js1 KB
sortedIndexOf.js762 B
sortedLastIndex.js679 B
sortedLastIndexBy.js1 KB
sortedLastIndexOf.js770 B
sortedUniq.js513 B
sortedUniqBy.js698 B
split.js2 KB
spread.js2 KB
startCase.js714 B
startsWith.js1017 B
string.js1 KB
stubArray.js390 B
stubFalse.js280 B
stubObject.js400 B
stubString.js290 B
stubTrue.js272 B
subtract.js511 B
sum.js453 B
sumBy.js908 B
tail.js457 B
take.js851 B
takeRight.js930 B
takeRightWhile.js1 KB
takeWhile.js1 KB
tap.js703 B
template.js10 KB
templateSettings.js1 KB
throttle.js3 KB
thru.js674 B
times.js1 KB
toArray.js1 KB
toFinite.js868 B
toInteger.js760 B
toIterator.js403 B
toJSON.js44 B
toLength.js868 B
toLower.js592 B
toNumber.js2 KB
toPairs.js699 B
toPairsIn.js737 B
toPath.js804 B
toPlainObject.js744 B
toSafeInteger.js836 B
toString.js580 B
toUpper.js592 B
transform.js2 KB
trim.js1 KB
trimEnd.js1 KB
trimStart.js1 KB
truncate.js3 KB
unary.js469 B
unescape.js1 KB
union.js749 B
unionBy.js1 KB
unionWith.js1 KB
uniq.js688 B
uniqBy.js1013 B
uniqueId.js562 B
uniqWith.js958 B
unset.js804 B
unzip.js1 KB
unzipWith.js1 KB
update.js1 KB
updateWith.js1 KB
upperCase.js620 B
upperFirst.js470 B
util.js1 KB
value.js44 B
valueOf.js44 B
values.js733 B
valuesIn.js723 B
without.js858 B
words.js1 KB
wrap.js871 B
wrapperAt.js1 KB
wrapperChain.js706 B
wrapperLodash.js7 KB
wrapperReverse.js1019 B
wrapperValue.js455 B
xor.js811 B
xorBy.js1 KB
xorWith.js1 KB
zip.js609 B
zipObject.js664 B
zipObjectDeep.js643 B
zipWith.js960 B

lodash v4.17.19

The Lodash library exported as Node.js modules.


Using npm:

$ npm i -g npm
$ npm i --save lodash

In Node.js:

// Load the full build.
var _ = require('lodash');
// Load the core build.
var _ = require('lodash/core');
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
var fp = require('lodash/fp');

// Load method categories.
var array = require('lodash/array');
var object = require('lodash/fp/object');

// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
var at = require('lodash/at');
var curryN = require('lodash/fp/curryN');

See the package source for more details.

Install n_ for Lodash use in the Node.js < 6 REPL.


Tested in Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.
Automated browser & CI test runs are available.