Clarify implicit chaining in the lodash docs. [ci skip]

This commit is contained in:
jdalton
2015-06-29 22:44:30 -07:00
parent d93aa183f3
commit 8ba161463b

View File

@@ -848,11 +848,11 @@
/** /**
* Creates a `lodash` object which wraps `value` to enable implicit chaining. * Creates a `lodash` object which wraps `value` to enable implicit chaining.
* Methods that operate on and return arrays, collections, and functions can * Methods that operate on and return arrays, collections, and functions can
* be chained together. Methods that return a boolean or single value will * be chained together. Methods that retrieve a single value or may return a
* automatically end the chain returning the unwrapped value. Explicit chaining * primitive value will automatically end the chain returning the unwrapped
* may be enabled using `_.chain`. The execution of chained methods is lazy, * value. Explicit chaining may be enabled using `_.chain`. The execution of
* that is, execution is deferred until `_#value` is implicitly or explicitly * chained methods is lazy, that is, execution is deferred until `_#value`
* called. * is implicitly or explicitly called.
* *
* Lazy evaluation allows several methods to support shortcut fusion. Shortcut * Lazy evaluation allows several methods to support shortcut fusion. Shortcut
* fusion is an optimization strategy which merge iteratee calls; this can help * fusion is an optimization strategy which merge iteratee calls; this can help