- Lodash - Home
- Lodash - Overview
- Lodash - Environment Setup
- Lodash - Array
- Lodash - Collection
- Lodash - Date
- Lodash - Function
- Lodash - Lang
- Lodash - Math
- Lodash - Number
- Lodash - Object
- Lodash - Seq
- Lodash - String
- Lodash - Util
- Lodash - Properties
- Lodash - Methods
- Lodash Useful Resources
- Lodash - Quick Guide
- Lodash - Useful Resources
- Lodash - Discussion
Lodash - Util
Lodash has many easy to use Utility methods. This chapter discusses them in detail.
Lodash provides various Utility methods as listed below −
| Sr.No. | Method & Syntax |
|---|---|
| 1 |
_.cond(pairs) |
| 2 |
_.conforms(source) |
| 3 |
_.constant(value) |
| 4 |
_.defaultTo(value, defaultValue) |
| 5 |
_.flow([funcs]) |
| 6 |
_.flowRight([funcs]) |
| 7 |
_.identity(value) |
| 8 |
_.iteratee([func=_.identity]) |
| 9 |
_.matches(source) |
| 10 |
_.matchesProperty(path, srcValue) |
| 11 |
_.method(path, [args]) |
| 12 |
_.methodOf(object, [args]) |
| 13 |
_.mixin([object=lodash], source, [options={}]) |
| 14 |
_.noConflict() |
| 15 |
_.noop() |
| 16 |
_.nthArg([n=0]) |
| 17 |
_.over([iteratees=[_.identity]]) |
| 18 |
_.overEvery([predicates=[_.identity]]) |
| 19 |
_.overSome([predicates=[_.identity]]) |
| 20 |
_.property(path) |
| 21 |
_.propertyOf(object) |
| 22 |
_.range([start=0], end, [step=1]) |
| 23 |
_.rangeRight([start=0], end, [step=1]) |
| 24 |
_.runInContext([context=root]) |
| 25 |
_.stubArray() |
| 26 |
_.stubFalse() |
| 27 |
_.stubObject() |
| 28 |
_.stubString() |
| 29 |
_.stubTrue() |
| 30 |
_.times(n, [iteratee=_.identity]) |
| 31 |
_.toPath(value) |
| 32 |
_.uniqueId([prefix='']) |