Книги и журналы » Компьютерная литература » Веб-дизайн и программирование
Lo-Dash EssentialsГод: 2015
Автор: Adam Boduch
Издательство: Packt Publishing
ISBN: 978-1-78439-565-0
Язык: Английский
Формат: PDF/EPUB
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 232
Описание:
Lo-Dash Essentials walks you through the Lo-Dash utility library, which promises consistency and performance in JavaScript development. This book looks into the most common functions and the various contexts in which they're used. You'll first start with object types and their properties, then you'll dive into larger development patterns, such as MapReduce, and how to chain functionality together. Following this, you'll learn how to make suitable builds for various environments, and discover how high-level patterns complement one another and how they lead to reusable building blocks for applications. Finally, you will gain some practical exposure to Lo-Dash by working alongside other libraries, and learn some useful techniques for improving performance.
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
Preface
Chapter 1: Working with Arrays and CollectionsThe difference between arrays and collections
Iterating over collections
Sorting data
Searching for data
Slicing collections into smaller pieces
Transforming collections
Chapter 2: Working with ObjectsDetermining an object type
Assigning and accessing properties
Iterating over objects
Calling methods
Transforming objects
Creating and cloning objects
Chapter 3: Working with FunctionsBinding function contexts
Decorating functions
Function constraints
Timed execution
Composing and currying functions
Chapter 4: Transformations Using Map/ReducePlucking values
Mapping collections
Mapping objects
Reducing collections
Reducing objects
Binding contexts
Map/reduce patterns
Chapter 5: Assembling ChainsCreating Lo-Dash wrappers
Building filters
Testing truth conditions
Counting items
Transformations
Intermediary results
Keys and values
Returning wrappers
Chapter 6: Application Building BlocksGeneric functions
Generic wrappers and chains
Composing functions
Creating mixins
Chapter 7: Using Lo-Dash with Other LibrariesModules
jQuery
Backbone
Node.js
Chapter 8: Internal Design and PerformanceDesign principles
Improving performance
Lazy evaluation
Caching things
Index[/spoiler]