更新时间:2021-08-06 19:27:47
coverpage
Lo-Dash Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Working with Arrays and Collections
The difference between arrays and collections
Iterating over collections
Sorting data
Searching for data
Slicing collections into smaller pieces
Transforming collections
Summary
Chapter 2. Working with Objects
Determining an object type
Assigning and accessing properties
Iterating over objects
Calling methods
Transforming objects
Creating and cloning objects
Chapter 3. Working with Functions
Binding function contexts
Decorating functions
Function constraints
Timed execution
Composing and currying functions
Chapter 4. Transformations Using Map/Reduce
Plucking values
Mapping collections
Mapping objects
Reducing collections
Reducing objects
Binding contexts
Map/reduce patterns
Chapter 5. Assembling Chains
Creating Lo-Dash wrappers
Building filters
Testing truth conditions
Counting items
Transformations
Intermediary results
Keys and values
Returning wrappers
Chapter 6. Application Building Blocks
Generic functions
Generic wrappers and chains
Composing functions
Creating mixins
Chapter 7. Using Lo-Dash with Other Libraries
Modules
jQuery
Backbone
Node.js
Chapter 8. Internal Design and Performance
Design principles
Improving performance
Lazy evaluation
Caching things
Index