The complete modularized lodash v3.0.3 library exported as standalone npm packages for utility functions, collections, objects, arrays, and more.
npx @tessl/cli install tessl/npm-lodash-modularized@3.0.0The complete modularized lodash v3.0.3 library exported as standalone npm packages. This collection provides 169 individual utility functions organized into logical categories for data manipulation, functional programming, type checking, and common development tasks.
npm install lodash.map)Each lodash function is available as a separate npm package:
// Individual function imports
var map = require('lodash.map');
var filter = require('lodash.filter');
var debounce = require('lodash.debounce');
var clone = require('lodash.clone');For ES modules (when available):
import map from 'lodash.map';
import filter from 'lodash.filter';
import debounce from 'lodash.debounce';
import clone from 'lodash.clone';var map = require('lodash.map');
var filter = require('lodash.filter');
var debounce = require('lodash.debounce');
// Collection operations
var numbers = [1, 2, 3, 4, 5];
var doubled = map(numbers, function(n) { return n * 2; });
// => [2, 4, 6, 8, 10]
var evens = filter(numbers, function(n) { return n % 2 === 0; });
// => [2, 4]
// Function utilities
var debouncedSave = debounce(function() {
console.log('Saving...');
}, 300);
// Object operations
var assign = require('lodash.assign');
var merged = assign({}, { a: 1 }, { b: 2 }, { c: 3 });
// => { a: 1, b: 2, c: 3 }The modularized lodash architecture provides:
_) handle implementation detailsEssential array manipulation utilities for transforming, filtering, and organizing data.
// Core array functions
function chunk(array, size);
function compact(array);
function difference(array, ...values);
function drop(array, n);
function flatten(array, isDeep);
function indexOf(array, value, fromIndex);
function intersection(...arrays);
function uniq(array, iteratee);Powerful iteration and data processing functions that work with arrays, objects, and strings.
// Core collection functions
function each(collection, iteratee);
function every(collection, predicate);
function filter(collection, predicate);
function find(collection, predicate);
function map(collection, iteratee);
function reduce(collection, iteratee, accumulator);
function some(collection, predicate);Object manipulation utilities for merging, transforming, and analyzing object properties.
// Core object functions
function assign(object, ...sources);
function clone(value, isDeep);
function keys(object);
function merge(object, ...sources);
function omit(object, ...props);
function pick(object, ...props);
function values(object);Higher-order functions for controlling execution, binding context, and creating specialized functions.
// Core function utilities
function bind(func, thisArg, ...partials);
function curry(func, arity);
function debounce(func, wait, options);
function memoize(func, resolver);
function once(func);
function partial(func, ...partials);
function throttle(func, wait, options);Comprehensive type checking utilities for runtime type validation and detection.
// Core type checking functions
function isArray(value);
function isBoolean(value);
function isDate(value);
function isEmpty(value);
function isEqual(value, other);
function isFunction(value);
function isNull(value);
function isNumber(value);
function isObject(value);
function isString(value);
function isUndefined(value);String manipulation and formatting utilities for text processing and transformation.
// Core string functions
function camelCase(string);
function capitalize(string);
function escape(string);
function kebabCase(string);
function pad(string, length, chars);
function snakeCase(string);
function template(string, options);
function trim(string, chars);Mathematical operations and number utilities for calculations and comparisons.
// Core math functions
function add(augend, addend);
function max(array);
function min(array);
function random(lower, upper, floating);
function sum(array);General-purpose utilities for common programming tasks and helper functions.
// Core utility functions
function constant(value);
function identity(value);
function noop();
function now();
function range(start, end, step);
function times(n, iteratee);
function uniqueId(prefix);Array Functions (37): chunk, compact, difference, drop, dropRight, dropRightWhile, dropWhile, fill, findIndex, findLastIndex, first, flatten, flattenDeep, indexOf, initial, intersection, last, lastIndexOf, pull, pullAt, remove, rest, slice, sortedIndex, sortedLastIndex, take, takeRight, takeRightWhile, takeWhile, union, uniq, unzip, without, xor, zip, zipObject
Collection Functions (27): at, countBy, every, filter, find, findLast, findWhere, forEach, forEachRight, groupBy, includes, indexBy, invoke, map, max, min, partition, pluck, reduce, reduceRight, reject, sample, shuffle, size, some, sortBy, where
Object Functions (26): assign, clone, cloneDeep, create, defaults, findKey, findLastKey, forIn, forInRight, forOwn, forOwnRight, functions, has, invert, keys, keysIn, mapValues, merge, omit, pairs, pick, result, transform, values, valuesIn
Function Utilities (21): after, ary, before, bind, bindAll, bindKey, curry, curryRight, debounce, defer, delay, flow, flowRight, memoize, negate, once, partial, partialRight, rearg, throttle, wrap
Type Checking (50): isArguments, isArray, isBoolean, isDate, isElement, isEmpty, isEqual, isError, isFinite, isFunction, isMatch, isNaN, isNative, isNull, isNumber, isObject, isPlainObject, isRegExp, isString, isTypedArray, isUndefined, plus type-specific checking utilities
String Functions (24): camelCase, capitalize, deburr, endsWith, escape, escapeRegExp, kebabCase, pad, padLeft, padRight, parseInt, repeat, snakeCase, startsWith, template, templateSettings, trim, trimLeft, trimRight, trunc, unescape, words
Math Functions (3): max, min, sum
Utility Functions (5): constant, identity, matches, mixin, noop, now, property, propertyOf, range, times, uniqueId
Internal utility modules prefixed with _ that handle implementation details and are not intended for direct use.