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.00
# Lodash Modularized v3.0.3
1
2
The 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.
3
4
## Package Information
5
6
- **Package Collection**: lodash-modularized
7
- **Package Type**: npm (169 individual packages)
8
- **Language**: JavaScript
9
- **Version**: 3.0.3
10
- **Installation**: Install individual modules as needed (e.g., `npm install lodash.map`)
11
12
## Core Imports
13
14
Each lodash function is available as a separate npm package:
15
16
```javascript
17
// Individual function imports
18
var map = require('lodash.map');
19
var filter = require('lodash.filter');
20
var debounce = require('lodash.debounce');
21
var clone = require('lodash.clone');
22
```
23
24
For ES modules (when available):
25
26
```javascript
27
import map from 'lodash.map';
28
import filter from 'lodash.filter';
29
import debounce from 'lodash.debounce';
30
import clone from 'lodash.clone';
31
```
32
33
## Basic Usage
34
35
```javascript
36
var map = require('lodash.map');
37
var filter = require('lodash.filter');
38
var debounce = require('lodash.debounce');
39
40
// Collection operations
41
var numbers = [1, 2, 3, 4, 5];
42
var doubled = map(numbers, function(n) { return n * 2; });
43
// => [2, 4, 6, 8, 10]
44
45
var evens = filter(numbers, function(n) { return n % 2 === 0; });
46
// => [2, 4]
47
48
// Function utilities
49
var debouncedSave = debounce(function() {
50
console.log('Saving...');
51
}, 300);
52
53
// Object operations
54
var assign = require('lodash.assign');
55
var merged = assign({}, { a: 1 }, { b: 2 }, { c: 3 });
56
// => { a: 1, b: 2, c: 3 }
57
```
58
59
## Architecture
60
61
The modularized lodash architecture provides:
62
63
- **Individual Packages**: Each function is a standalone npm package with minimal dependencies
64
- **Optimized Bundle Size**: Import only the functions you need to minimize bundle size
65
- **Consistent API**: All functions follow the same parameter patterns and conventions
66
- **Internal Modules**: Private utility functions (prefixed with `_`) handle implementation details
67
- **Cross-Dependencies**: Functions reuse internal utilities for consistency and efficiency
68
69
## Capabilities
70
71
### Array Functions
72
73
Essential array manipulation utilities for transforming, filtering, and organizing data.
74
75
```javascript { .api }
76
// Core array functions
77
function chunk(array, size);
78
function compact(array);
79
function difference(array, ...values);
80
function drop(array, n);
81
function flatten(array, isDeep);
82
function indexOf(array, value, fromIndex);
83
function intersection(...arrays);
84
function uniq(array, iteratee);
85
```
86
87
[Array Functions](./array-functions.md)
88
89
### Collection Functions
90
91
Powerful iteration and data processing functions that work with arrays, objects, and strings.
92
93
```javascript { .api }
94
// Core collection functions
95
function each(collection, iteratee);
96
function every(collection, predicate);
97
function filter(collection, predicate);
98
function find(collection, predicate);
99
function map(collection, iteratee);
100
function reduce(collection, iteratee, accumulator);
101
function some(collection, predicate);
102
```
103
104
[Collection Functions](./collection-functions.md)
105
106
### Object Functions
107
108
Object manipulation utilities for merging, transforming, and analyzing object properties.
109
110
```javascript { .api }
111
// Core object functions
112
function assign(object, ...sources);
113
function clone(value, isDeep);
114
function keys(object);
115
function merge(object, ...sources);
116
function omit(object, ...props);
117
function pick(object, ...props);
118
function values(object);
119
```
120
121
[Object Functions](./object-functions.md)
122
123
### Function Utilities
124
125
Higher-order functions for controlling execution, binding context, and creating specialized functions.
126
127
```javascript { .api }
128
// Core function utilities
129
function bind(func, thisArg, ...partials);
130
function curry(func, arity);
131
function debounce(func, wait, options);
132
function memoize(func, resolver);
133
function once(func);
134
function partial(func, ...partials);
135
function throttle(func, wait, options);
136
```
137
138
[Function Utilities](./function-utilities.md)
139
140
### Type Checking (Lang)
141
142
Comprehensive type checking utilities for runtime type validation and detection.
143
144
```javascript { .api }
145
// Core type checking functions
146
function isArray(value);
147
function isBoolean(value);
148
function isDate(value);
149
function isEmpty(value);
150
function isEqual(value, other);
151
function isFunction(value);
152
function isNull(value);
153
function isNumber(value);
154
function isObject(value);
155
function isString(value);
156
function isUndefined(value);
157
```
158
159
[Type Checking](./type-checking.md)
160
161
### String Functions
162
163
String manipulation and formatting utilities for text processing and transformation.
164
165
```javascript { .api }
166
// Core string functions
167
function camelCase(string);
168
function capitalize(string);
169
function escape(string);
170
function kebabCase(string);
171
function pad(string, length, chars);
172
function snakeCase(string);
173
function template(string, options);
174
function trim(string, chars);
175
```
176
177
[String Functions](./string-functions.md)
178
179
### Math Functions
180
181
Mathematical operations and number utilities for calculations and comparisons.
182
183
```javascript { .api }
184
// Core math functions
185
function add(augend, addend);
186
function max(array);
187
function min(array);
188
function random(lower, upper, floating);
189
function sum(array);
190
```
191
192
[Math Functions](./math-functions.md)
193
194
### Utility Functions
195
196
General-purpose utilities for common programming tasks and helper functions.
197
198
```javascript { .api }
199
// Core utility functions
200
function constant(value);
201
function identity(value);
202
function noop();
203
function now();
204
function range(start, end, step);
205
function times(n, iteratee);
206
function uniqueId(prefix);
207
```
208
209
[Utility Functions](./utility-functions.md)
210
211
## Package List
212
213
### Public API Modules (169 total)
214
215
**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
216
217
**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
218
219
**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
220
221
**Function Utilities (21)**: after, ary, before, bind, bindAll, bindKey, curry, curryRight, debounce, defer, delay, flow, flowRight, memoize, negate, once, partial, partialRight, rearg, throttle, wrap
222
223
**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
224
225
**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
226
227
**Math Functions (3)**: max, min, sum
228
229
**Utility Functions (5)**: constant, identity, matches, mixin, noop, now, property, propertyOf, range, times, uniqueId
230
231
### Internal/Private Modules (48)
232
233
Internal utility modules prefixed with `_` that handle implementation details and are not intended for direct use.