1.Introduction
- 1.1Installation
- 1.1.1Web
- 1.1.2NodeJS
- 1.2Lodash features
- 1.3Code sample convention
- 1.4About this book
2.Common concepts
- 2.1Truthy and falsy
- 2.2SameValueZero
- 2.3Predicates
- 2.3.1
matches - 2.3.2
matchesProperty - 2.3.3
property - 2.4Iteratees
- 2.4.1Iteratee shorthand
- 2.5
thisbinding
3.Collections
- 3.1Each
- 3.2Every and some
- 3.3Filter and reject
- 3.4Size
- 3.5Includes
- 3.6Sample
- 3.7Shuffle
- 3.8Partition
- 3.9Count by
- 3.10Group by and key by
- 3.11
invokeMap - 3.12Map and reduce
- 3.12.1Map
- 3.12.2Reduce
- 3.13Search
- 3.13.1
find - 3.13.2
findLast - 3.14Sort
- 3.15
flatMap
4.Arrays
- 4.1Search
- 4.2Set operations
- 4.2.1Equality comparisons
- 4.2.2Unique
- 4.2.3Union
- 4.2.4Difference
- 4.2.5Intersection
- 4.2.6Symmetric difference
- 4.3Chunk
- 4.4Compact
- 4.5Fill
- 4.6Flatten
- 4.7Remove
- 4.7.1
remove - 4.7.2
pull - 4.7.3
pullAt - 4.7.4
pullAll - 4.7.5
without - 4.8Zip
- 4.8.1
zip - 4.8.2
zipWith - 4.8.3
zipObject - 4.8.4
zipObjectDeep - 4.8.5
unzip - 4.9Partition
- 4.9.1
first - 4.9.2
last - 4.9.3
initial - 4.9.4
tail - 4.10Slicing
- 4.10.1Basic slicing
- 4.10.2Drop elements
- 4.10.3Take elements
- 4.11Sorted arrays
- 4.12Concatenation
- 4.13From pairs
- 4.14Join
- 4.15Reverse
- 4.16Nth element
5.Objects
- 5.1Assign
- 5.1.1
assign - 5.1.2
assignIn - 5.1.3
assignInWith - 5.2Merge
- 5.2.1
merge - 5.2.2
mergeWith - 5.3Transform
- 5.4Create
- 5.5Default values
- 5.6Function names
- 5.6.1
functions - 5.6.2
functionsIn - 5.7Invert
- 5.7.1
invert - 5.7.2
invertBy - 5.8Keys and values
- 5.8.1
has - 5.8.2
hasIn - 5.8.3
keysandkeysIn - 5.8.4
valuesandvaluesIn - 5.8.5
mapValues - 5.8.6
mapKeys - 5.8.7
result - 5.8.8
toPairsandtoPairsIn - 5.9Pick and omit
- 5.9.1
pickandpickBy - 5.9.2
omitandomitBy - 5.10Iterate
- 5.10.1
forInandforInRight - 5.10.2
forOwnandforOwnRight - 5.11Get and set
- 5.11.1
get - 5.11.2
set - 5.11.3
setWith - 5.11.4
update - 5.12At
- 5.13Find key
6.Functions
- 6.1Bind
- 6.2Before and after
- 6.2.1
before - 6.2.2
after - 6.3Ary
- 6.4Partial
- 6.4.1
partial - 6.4.2
partialRight - 6.5Curry
- 6.6Flow
- 6.7Defer
- 6.8Once
- 6.9Negate
- 6.10Spread
- 6.11Wrap
- 6.12Rearg
- 6.13Rest parameters
- 6.14Debounce and throttle
- 6.14.1Debounce
- 6.14.2Throttle
- 6.15Memoize
- 6.16Modify arguments
- 6.17Flip arguments
7.Strings
- 7.1Character cases
- 7.1.1
capitalize - 7.1.2
camelCase - 7.1.3
snakeCase - 7.1.4
kebabCase - 7.1.5
startCase - 7.2Search
- 7.3Escape
- 7.4Pad
- 7.5Trim
- 7.6Repeat
- 7.7Truncate
- 7.8parseInt
- 7.9Words
- 7.10Replace
- 7.11Split
- 7.12Uppercase and lowercase
- 7.12.1
upperCase - 7.12.2
upperFirst - 7.12.3
toUpper - 7.12.4
lowerCase - 7.12.5
lowerFirst - 7.12.6
toLower
8.Miscellaneous
- 8.1Types
- 8.1.1Type check
- 8.1.2Type conversion
- 8.2Clone
- 8.3Date
- 8.4Math
- 8.4.1Add
- 8.4.2Subtract
- 8.4.3Multiply
- 8.4.4Divide
- 8.4.5Max
- 8.4.6Min
- 8.4.7Sum
- 8.4.8Ceil
- 8.4.9Floor
- 8.4.10Round
- 8.4.11Mean
- 8.5Number
- 8.5.1
inRange - 8.5.2
clamp - 8.5.3Random numbers
- 8.6Comparison
- 8.6.1
isEqualandisEqualWith - 8.6.2
eq - 8.6.3
gtandgte - 8.7Utilities
- 8.7.1
attempt - 8.7.2
constant - 8.7.3
identity - 8.7.4
noop - 8.7.5
noConflict - 8.7.6Range
- 8.7.7
times - 8.7.8
uniqueId - 8.7.9Method
- 8.7.10
cond - 8.7.11
conforms - 8.7.12
nthArg - 8.7.13
over,overEveryandoverSome - 8.7.14
toPath - 8.7.15
castArray - 8.8Stub
- 8.9Default to
9.Chaining
- 9.1Wrapper
- 9.2Explicit chaining
- 9.3
tap - 9.4
thru
10.String Templates
- 10.1interpolate
- 10.2escape
- 10.3evaluate
- 10.4imports
- 10.5Data object name
11.Recipes
- 11.1Filter an object’s properties
- 11.1.1Scenario
- 11.1.2Solution
- 11.2Push an array of elements into an array
- 11.2.1Scenario
- 11.2.2Solution
- 11.3Process data for C3.js pie chart
- 11.3.1Scenario
- 11.3.2Solution
- 11.4Create a unique array of objects
- 11.4.1Scenario
- 11.4.2Solution
- 11.5Convert an array to an object
- 11.5.1Scenario
- 11.5.2Solution