Index
A
- accumulator / Summing values
- alreadyBound() function / Callbacks and function binding
- AMD
- about / Modules
- apply() function / Callbacks and function binding
- arithmetic / Arithmetic
- arrays
- versus collections / The difference between arrays and collections
- about / The difference between arrays and collections
- unique arrays, building / Building unique arrays
- creating, without() function used / Creating arrays using without()
- assign() function / Extending objects
- average() function / Min, max, and average operations
- creating / Creating an average() function
B
- Backbone
- about / Backbone
- Underscore.js, replacing / Replacing Underscore.js
- Lo-Dash functionality / Full-featured Lo-Dash and Backbone
- collections, enhancing / Enhancing collections and models
- models, enhancing / Enhancing collections and models
- baseArray() function / Optimizing for the common case
- base functions
- bind() function / Changing the this keyword
- bindAll() function / Binding methods
- binding methods
- about / Binding methods
- bindKey() function / Dynamic methods
- bound() function / Bound and unbound callbacks
- bound callback / Bound and unbound callbacks
C
- callable objects / Callable objects
- callbacks
- composing / Composing callbacks
- call stack
- about / Deferring function calls
- chainable / Generic filters
- chainable call
- about / Wrapping values
- chained calls
- about / Chained calls
- chains
- about / Generic wrappers and chains
- returning / Returning chains
- composing / Composing chains
- chunk() function / Splitting collections into chunks
- chunks
- collections, splitting into / Splitting collections into chunks
- clone() function / Cloning objects
- code
- organizing, with modules / Organizing your code with modules
- collection items
- grouping / Grouping collection items
- counting / Counting collection items
- collection module / Working with Lo-Dash AMD modules
- collectionNames() function / Specific functions
- collections
- versus arrays / The difference between arrays and collections
- about / The difference between arrays and collections
- iterating over / Iterating over collections
- filtering / Filtering collections
- items, finding in / Finding items in collections
- slicing / Slicing collections into smaller pieces
- splitting, into chunks / Splitting collections into chunks
- transforming / Transforming collections
- mapping operation / Filtering and mapping
- filtering operation / Filtering and mapping, Filtering and reducing
- reducing operation / Filtering and reducing
- min operation / Min, max, and average operations
- max operation / Min, max, and average operations
- average operation / Min, max, and average operations
- jQuery instances, used as / Using jQuery instances as collections
- enhancing / Enhancing collections and models
- sorting / Sorting and indexing collections
- indexing / Sorting and indexing collections
- collections, mapping
- about / Mapping collections
- properties, including / Including and excluding properties
- properties, excluding / Including and excluding properties
- calculations, performing / Performing calculations
- functions, calling / Calling functions
- collections, reducing
- about / Reducing collections
- values, summing / Summing values
- command
- creating / Creating a simple command
- compact() function / Flattening and compacting
- compacting
- about / Flattening and compacting
- comparator function / Sorting data
- compose() function / Composing functions
- contains() function / Testing if a collection contains an item
- contexts
- binding / Binding contexts
- countBy() function
- used, for grouping items / Grouping using countBy()
- create() function / Creating objects
- custom Lo-Dash builds / Custom Lo-Dash builds
D
- data
- sorting / Sorting data
- sorting, sortBy() function used / Using sortBy()
- searching for / Searching for data
- debounce() function / Debouncing function calls
- debouncing / Debouncing function calls
- defaults() function / Defaults for new objects
- defaults, new objects / Defaults for new objects
- defer() function / Splitting collections into chunks
- define() function / Organizing your code with modules
- delay() function
- about / Delaying function calls
- design principles, Lo-Dash
- about / Design principles
- function compilation, to base functions / Function compilation to base functions
- optimize for the common case principle / Optimizing for the common case
- loops, using / Loops are simple
- callbacks / Callbacks and function binding
- function binding / Callbacks and function binding
- difference() function
- using / Using difference() and xor()
- differences
- distance() function
- creating / Creating a distance() function
- dynamic methods
- about / Dynamic methods
E
- enabled() function / Composing generic functions, Composing callbacks
- enabledIndex() function / Composing generic functions
- evensSorted() function / Composing chains
- every() function / Validating some or all items
- explicit chaining / Explicit and implicit chaining
- extend() function / Extending objects, Replacing Underscore.js
F
- filter() function / Filtering collections, Building filters, Generic filters
- combining, with where() function / Combining filter() with where()
- filtered keys
- using / Filtered keys and values
- filtered values
- using / Filtered keys and values
- filters
- building / Building filters
- dropping functionality / Dropping and taking collection items
- taking functionality / Dropping and taking collection items
- items, rejecting / Rejecting items
- initial() function, using / Using initial() and rest()
- rest() function, using / Using initial() and rest()
- find() function / Finding items in collections, Finding keys and values
- findKey() function
- about / Finding keys and values
- findLast() function / Finding keys and values
- findLastKey() function / Finding keys and values
- first collection portion / First and last collection portions
- flatten() function / Flattening and compacting
- flattenDeep() function / Flattening and compacting
- flattening
- about / Flattening and compacting
- flattenProp() function / Using partials
- flow() function / Composing generic functions
- forEach() function / Basic For Each
- forEachRight() function / Iterating over collections
- foresight / Generic callback functions
- function arguments
- managing / Managing function arguments
- function binding / Callbacks and function binding
- function calls
- delaying / Delaying function calls
- deferring / Deferring function calls
- throttling / Throttling function calls
- debouncing / Debouncing function calls
- function compilation
- function constraints
- about / Function constraints
- call counts, limiting / Limiting call counts
- caching values / Caching values
- function contexts
- binding / Binding function contexts
- this keyword, modifying / Changing the this keyword
- binding methods / Binding methods
- dynamic methods / Dynamic methods
- function decorators
- about / Function decorators
- functions
- decorating / Decorating functions
- composing / Composing and currying functions, Composing functions, Composing functions
- currying / Composing and currying functions, Currying functions
- binding / Binding functions
- functions() function / Finding methods
G
- generic callbacks / Generic callbacks
- genericCollNames() function / Specific functions
- generic filters
- about / Generic filters
- generic function arguments
- about / Generic function arguments
- generic functions
- about / Generic functions
- specific functions / Specific functions
- partials, using / Using partials
- composing / Composing generic functions
- genericPropNames() function / Specific functions
- generic wrappers
- about / Generic wrappers and chains
- groupBy() function / Grouping collection items
H
- hasOwnProperty() method / Including inherited properties
- hindsight / Generic callback functions
I
- identity() function / Generic function arguments
- implicit chaining / Explicit and implicit chaining
- index() function / Finding the index
- indexByName() function / Composing generic functions
- indexed variable / Sorting and indexing collections
- indirectionNames() function / Specific functions
- initial() function
- using / Using initial() and rest()
- insert() function / Generic function arguments
- intermediary results
- about / Intermediary results
- tapping, into chains / Tapping into chains
- values, injecting / Injecting values
- intersection() function / Unions, intersections, and differences
- intersections
- invoke() function / Working with Lo-Dash AMD modules
- isFinite() function / Arithmetic
- items
- finding, in collections / Finding items in collections
- validating / Validating some or all items
- rejecting / Rejecting items
- counting / Counting items
- length function, using / Using length and size()
- size() function, using / Using length and size()
- grouping, countBy() used / Grouping using countBy()
- collections, reducing / Reducing collections
J
- jQuery
- about / jQuery
- challenges / Challenges faced by jQuery
- instances used, as collections / Using jQuery instances as collections
- functions, binding / Binding functions
- deferred instances, working with / Working with jQuery deferred instances
- jQuery deferred instances
- working with / Working with jQuery deferred instances
- just-in-time (JIT)
K
- keys() function / Keys and values, Keys and values
- about / Keys and values
L
- last collection portion / First and last collection portions
- lazy evaluation
- using / Lazy evaluation
- length function
- using / Using length and size()
- Lo-Dash
- about / Requiring Lo-Dash, Loops are simple
- challenges / Challenges faced by Lo-Dash
- Lo-Dash AMD modules
- working with / Working with Lo-Dash AMD modules
- Lo-Dash API
- Lo-Dash functionality / Full-featured Lo-Dash and Backbone
- Lo-Dash package
- installing / Installing the Lo-Dash package
- Lo-Dash wrappers
- creating / Creating Lo-Dash wrappers
- chained calls / Chained calls
- values, wrapping / Wrapping values
- implicit chaining / Explicit and implicit chaining
- explicit chaining / Explicit and implicit chaining
- loops
- using / Loops are simple
M
- map() function / Plucking values
- map/reduce chains
- about / Map/reduce chains
- map/reduce patterns
- about / Map/reduce patterns
- generic callback functions / Generic callback functions
- max() function / Counting collection items, Min, max, and average operations, Finding the min and max values
- memoization / Caching values
- memoize() function / Caching things
- merge() function / Extending objects
- method composition
- about / Method composition
- methods
- calling / Calling methods
- results, obtaining / Getting results
- finding / Finding methods
- min() function / Counting collection items, Min, max, and average operations, Finding the min and max values
- minimal() function / Composing callbacks
- mixins
- creating / Creating mixins
- average() function, creating / Creating an average() function
- distance() function, creating / Creating a distance() function
- models
- enhancing / Enhancing collections and models
- modules
- about / Modules
- code, organizing with / Organizing your code with modules
- Lo-Dash / Requiring Lo-Dash
- Lo-Dash AMD modules, working with / Working with Lo-Dash AMD modules
- multiple filter() calls / Multiple filter() calls
- multiplier property / Binding functions
N
- negate() function / Filtering collections
- new keyword / Creating and cloning objects
- Node.js
- about / Node.js
- Lo-Dash package, installing / Installing the Lo-Dash package
- command, creating / Creating a simple command
- custom Lo-Dash builds / Custom Lo-Dash builds
- non-chainable functions
- about / Explicit and implicit chaining
O
- object accumulators / Object accumulators
- object properties
- picking / Omitting and picking properties
- omitting / Omitting and picking properties
- objects
- function arguments, managing / Managing function arguments
- callable objects / Callable objects
- extending / Extending objects
- keys, finding / Finding keys and values
- values, finding / Finding keys and values
- iterating over / Iterating over objects
- basic For Each / Basic For Each
- inherited properties, including / Including inherited properties
- keys, iterating / Keys and values
- values, iterating / Keys and values
- transforming / Transforming objects
- properties, omitting / Picking and omitting properties
- properties, picking / Picking and omitting properties
- keys, inverting / Inverting keys and values
- values, inverting / Inverting keys and values
- creating / Creating and cloning objects, Creating objects
- cloning / Creating and cloning objects, Cloning objects
- objects, mapping
- about / Mapping objects
- keys, using / Working with keys
- methods, calling / Calling methods
- key-value pairs, mapping / Mapping key-value pairs
- objects, reducing
- about / Reducing objects
- keys, reducing / Reducing keys
- object type
- determining / Determining an object type
- omit() function / Picking and omitting properties
- operation order
- changing / Changing the operation order
- optimize for the common case principle / Optimizing for the common case
P
- pairs() function
- using / Using pairs
- partial() function / Splitting collections into chunks, Partials, Using partials
- partial application / Changing the this keyword
- partial function
- creating / Partials
- partials
- about / Decorating functions
- using / Using partials
- performance
- improving / Improving performance
- operation order, changing / Changing the operation order
- collections, sorting / Sorting and indexing collections
- collections, indexing / Sorting and indexing collections
- bound callback / Bound and unbound callbacks
- unbound callback / Bound and unbound callbacks
- pick() function / Picking and omitting properties
- pluck() function / Using sortBy(), Plucking values
- pluck style shorthand / Using sortBy()
- poll() function
- about / Delaying function calls
- preflight check / Validating some or all items
- primeFactors() function / Caching things
- process() function / Splitting collections into chunks
- properties
- assigning / Assigning and accessing properties
- accessing / Assigning and accessing properties
- omitting / Picking and omitting properties
- picking / Picking and omitting properties
- prototype chain
- about / Including inherited properties
Q
- query() function / Working with jQuery deferred instances
R
- range() function / Splitting collections into chunks
- rank() function / Finding the index
- referential transparency / Caching values
- reject() function / Filtering collections, Lazy evaluation
- rejectOdd() function / Composing chains
- RequireJS
- about / Modules
- resolve() function / Working with jQuery deferred instances
- result() function / Getting results
- results
- caching / Caching things
- reverse() method / Sorting data
S
- score() function / Min, max, and average operations
- size() function / Counting collection items
- using / Using length and size()
- slice() function / Using initial() and rest(), Generic function arguments
- slice() method / First and last collection portions
- some() function / Validating some or all items
- sort() function / Returning chains
- sort() method / Sorting data
- sortBy() function
- used, for sorting data / Using sortBy()
- about / Maintaining the sort order
- sortedIndex() function / Maintaining the sort order, Sorting and indexing collections
- sortName() function / Requiring Lo-Dash
- sort order
- maintaining / Maintaining the sort order
- sortValues() function / Inverting keys and values
- specific functions
- about / Specific functions
T
- take() function / First and last collection portions
- takeRight() function / First and last collection portions
- tap() function
- about / Tapping into chains
- this keyword
- modifying / Changing the this keyword
- throttle() function / Debouncing function calls
- timed execution
- about / Timed execution
- function calls, delaying / Delaying function calls
- function calls, deferring / Deferring function calls
- function calls, throttling / Throttling function calls
- function calls, debouncing / Debouncing function calls
- transformations
- about / Transformations
- groups, building / Building groups, unions, and unique values
- unions, building / Building groups, unions, and unique values
- unique values, building / Building groups, unions, and unique values
- values, plucking / Plucking values
- arrays, creating without() function used / Creating arrays using without()
- min values, finding / Finding the min and max values
- max values, finding / Finding the min and max values
- index, finding / Finding the index
- difference() function, using / Using difference() and xor()
- xor() function, using / Using difference() and xor()
- truth conditions
- testing / Testing truth conditions, Everything or anything is true
- collection contains item test / Testing if a collection contains an item
- truthy values / Filtering collections
- type coercion
- about / Type coercion
- avoiding / Type coercion
U
- unbound() function / Bound and unbound callbacks
- unbound callback / Bound and unbound callbacks
- Underscore.js
- replacing / Replacing Underscore.js
- union() function / Unions, intersections, and differences
- unions
- uniq() function / Building unique arrays
- unique arrays
- building / Building unique arrays
- unwrapped values / Explicit and implicit chaining
V
- validItem() function / Generic callbacks
- value() function / Requiring Lo-Dash
- values
- plucking / Plucking values
- wrapping / Wrapping values
- values() function / Keys and values
- variadic functions / Managing function arguments
W
- where() function / Filtering collections
- filter() function, combining with / Combining filter() with where()
- where style callback / Filtering collections
- without() function
- used, for creating arrays / Creating arrays using without()
- Wrappers / Decorating functions
- wrappers
- returning / Returning wrappers
X
- xor() function / Unions, intersections, and differences
- using / Using difference() and xor()