mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Fix misspellings in the docs.
Former-commit-id: 5c318a9fd6b624dbd9befb314644cb7967dc4fe9
This commit is contained in:
42
dist/lodash.compat.js
vendored
42
dist/lodash.compat.js
vendored
@@ -1097,7 +1097,7 @@
|
||||
|
||||
/**
|
||||
* Assigns own enumerable properties of source object(s) to the destination
|
||||
* object. Subsequent sources will overwrite propery assignments of previous
|
||||
* object. Subsequent sources will overwrite property assignments of previous
|
||||
* sources. If a `callback` function is passed, it will be executed to produce
|
||||
* the assigned values. The `callback` is bound to `thisArg` and invoked with
|
||||
* two arguments; (objectValue, sourceValue).
|
||||
@@ -1506,7 +1506,7 @@
|
||||
* @param {Mixed} [thisArg] The `this` binding of `callback`.
|
||||
* @param- {Object} [stackA=[]] Internally used track traversed `a` objects.
|
||||
* @param- {Object} [stackB=[]] Internally used track traversed `b` objects.
|
||||
* @returns {Boolean} Returns `true`, if the values are equvalent, else `false`.
|
||||
* @returns {Boolean} Returns `true`, if the values are equivalent, else `false`.
|
||||
* @example
|
||||
*
|
||||
* var moe = { 'name': 'moe', 'age': 40 };
|
||||
@@ -1924,7 +1924,7 @@
|
||||
/**
|
||||
* Recursively merges own enumerable properties of the source object(s), that
|
||||
* don't resolve to `undefined`, into the destination object. Subsequent sources
|
||||
* will overwrite propery assignments of previous sources. If a `callback` function
|
||||
* will overwrite property assignments of previous sources. If a `callback` function
|
||||
* is passed, it will be executed to produce the merged values of the destination
|
||||
* and source properties. If `callback` returns `undefined`, merging will be
|
||||
* handled by the method instead. The `callback` is bound to `thisArg` and
|
||||
@@ -2322,7 +2322,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2365,7 +2365,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2427,7 +2427,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2491,7 +2491,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2586,7 +2586,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`
|
||||
*
|
||||
* @static
|
||||
@@ -2665,7 +2665,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2723,7 +2723,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2792,7 +2792,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2975,7 +2975,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3075,7 +3075,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3139,7 +3139,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3305,7 +3305,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3461,7 +3461,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3587,7 +3587,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3695,7 +3695,7 @@
|
||||
* @category Arrays
|
||||
* @param {Number} [start=0] The start of the range.
|
||||
* @param {Number} end The end of the range.
|
||||
* @param {Number} [step=1] The value to increment or descrement by.
|
||||
* @param {Number} [step=1] The value to increment or decrement by.
|
||||
* @returns {Array} Returns a new range array.
|
||||
* @example
|
||||
*
|
||||
@@ -3747,7 +3747,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3820,7 +3820,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3904,7 +3904,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
|
||||
42
dist/lodash.js
vendored
42
dist/lodash.js
vendored
@@ -954,7 +954,7 @@
|
||||
|
||||
/**
|
||||
* Assigns own enumerable properties of source object(s) to the destination
|
||||
* object. Subsequent sources will overwrite propery assignments of previous
|
||||
* object. Subsequent sources will overwrite property assignments of previous
|
||||
* sources. If a `callback` function is passed, it will be executed to produce
|
||||
* the assigned values. The `callback` is bound to `thisArg` and invoked with
|
||||
* two arguments; (objectValue, sourceValue).
|
||||
@@ -1363,7 +1363,7 @@
|
||||
* @param {Mixed} [thisArg] The `this` binding of `callback`.
|
||||
* @param- {Object} [stackA=[]] Internally used track traversed `a` objects.
|
||||
* @param- {Object} [stackB=[]] Internally used track traversed `b` objects.
|
||||
* @returns {Boolean} Returns `true`, if the values are equvalent, else `false`.
|
||||
* @returns {Boolean} Returns `true`, if the values are equivalent, else `false`.
|
||||
* @example
|
||||
*
|
||||
* var moe = { 'name': 'moe', 'age': 40 };
|
||||
@@ -1775,7 +1775,7 @@
|
||||
/**
|
||||
* Recursively merges own enumerable properties of the source object(s), that
|
||||
* don't resolve to `undefined`, into the destination object. Subsequent sources
|
||||
* will overwrite propery assignments of previous sources. If a `callback` function
|
||||
* will overwrite property assignments of previous sources. If a `callback` function
|
||||
* is passed, it will be executed to produce the merged values of the destination
|
||||
* and source properties. If `callback` returns `undefined`, merging will be
|
||||
* handled by the method instead. The `callback` is bound to `thisArg` and
|
||||
@@ -2170,7 +2170,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2213,7 +2213,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2275,7 +2275,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2339,7 +2339,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2434,7 +2434,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`
|
||||
*
|
||||
* @static
|
||||
@@ -2513,7 +2513,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2571,7 +2571,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2640,7 +2640,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2821,7 +2821,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2921,7 +2921,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2985,7 +2985,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3149,7 +3149,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3305,7 +3305,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3431,7 +3431,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3539,7 +3539,7 @@
|
||||
* @category Arrays
|
||||
* @param {Number} [start=0] The start of the range.
|
||||
* @param {Number} end The end of the range.
|
||||
* @param {Number} [step=1] The value to increment or descrement by.
|
||||
* @param {Number} [step=1] The value to increment or decrement by.
|
||||
* @returns {Array} Returns a new range array.
|
||||
* @example
|
||||
*
|
||||
@@ -3591,7 +3591,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3664,7 +3664,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3748,7 +3748,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
|
||||
40
dist/lodash.underscore.js
vendored
40
dist/lodash.underscore.js
vendored
@@ -762,7 +762,7 @@
|
||||
|
||||
/**
|
||||
* Assigns own enumerable properties of source object(s) to the destination
|
||||
* object. Subsequent sources will overwrite propery assignments of previous
|
||||
* object. Subsequent sources will overwrite property assignments of previous
|
||||
* sources. If a `callback` function is passed, it will be executed to produce
|
||||
* the assigned values. The `callback` is bound to `thisArg` and invoked with
|
||||
* two arguments; (objectValue, sourceValue).
|
||||
@@ -1063,7 +1063,7 @@
|
||||
* @param {Mixed} [thisArg] The `this` binding of `callback`.
|
||||
* @param- {Object} [stackA=[]] Internally used track traversed `a` objects.
|
||||
* @param- {Object} [stackB=[]] Internally used track traversed `b` objects.
|
||||
* @returns {Boolean} Returns `true`, if the values are equvalent, else `false`.
|
||||
* @returns {Boolean} Returns `true`, if the values are equivalent, else `false`.
|
||||
* @example
|
||||
*
|
||||
* var moe = { 'name': 'moe', 'age': 40 };
|
||||
@@ -1569,7 +1569,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -1612,7 +1612,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -1674,7 +1674,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -1738,7 +1738,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -1836,7 +1836,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`
|
||||
*
|
||||
* @static
|
||||
@@ -1915,7 +1915,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -1973,7 +1973,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2040,7 +2040,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2219,7 +2219,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2319,7 +2319,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2383,7 +2383,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2550,7 +2550,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2706,7 +2706,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2820,7 +2820,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2928,7 +2928,7 @@
|
||||
* @category Arrays
|
||||
* @param {Number} [start=0] The start of the range.
|
||||
* @param {Number} end The end of the range.
|
||||
* @param {Number} [step=1] The value to increment or descrement by.
|
||||
* @param {Number} [step=1] The value to increment or decrement by.
|
||||
* @returns {Array} Returns a new range array.
|
||||
* @example
|
||||
*
|
||||
@@ -2980,7 +2980,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3053,7 +3053,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3137,7 +3137,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
|
||||
@@ -255,7 +255,7 @@ Gets the first element of the `array`. If a number `n` is passed, the first `n`
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Aliases
|
||||
*head, take*
|
||||
@@ -375,7 +375,7 @@ Gets all but the last element of `array`. If a number `n` is passed, the last `n
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Arguments
|
||||
1. `array` *(Array)*: The array to query.
|
||||
@@ -456,7 +456,7 @@ Gets the last element of the `array`. If a number `n` is passed, the last `n` el
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Arguments
|
||||
1. `array` *(Array)*: The array to query.
|
||||
@@ -543,7 +543,7 @@ Creates an array of numbers *(positive and/or negative)* progressing from `start
|
||||
#### Arguments
|
||||
1. `[start=0]` *(Number)*: The start of the range.
|
||||
2. `end` *(Number)*: The end of the range.
|
||||
3. `[step=1]` *(Number)*: The value to increment or descrement by.
|
||||
3. `[step=1]` *(Number)*: The value to increment or decrement by.
|
||||
|
||||
#### Returns
|
||||
*(Array)*: Returns a new range array.
|
||||
@@ -580,7 +580,7 @@ The opposite of `_.initial`, this method gets all but the first value of `array`
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Aliases
|
||||
*drop, tail*
|
||||
@@ -640,7 +640,7 @@ Uses a binary search to determine the smallest index at which the `value` should
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Arguments
|
||||
1. `array` *(Array)*: The array to iterate over.
|
||||
@@ -713,7 +713,7 @@ Creates a duplicate-value-free version of the `array` using strict equality for
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Aliases
|
||||
*unique*
|
||||
@@ -1023,7 +1023,7 @@ Creates an object composed of keys returned from running each element of the `co
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Arguments
|
||||
1. `collection` *(Array|Object|String)*: The collection to iterate over.
|
||||
@@ -1059,7 +1059,7 @@ Checks if the `callback` returns a truthy value for **all** elements of a `colle
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Aliases
|
||||
*all*
|
||||
@@ -1105,7 +1105,7 @@ Examines each element in a `collection`, returning an array of all elements the
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Aliases
|
||||
*select*
|
||||
@@ -1151,7 +1151,7 @@ Examines each element in a `collection`, returning the first that the `callback`
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Aliases
|
||||
*detect*
|
||||
@@ -1231,7 +1231,7 @@ Creates an object composed of keys returned from running each element of the `co
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`
|
||||
|
||||
#### Arguments
|
||||
1. `collection` *(Array|Object|String)*: The collection to iterate over.
|
||||
@@ -1297,7 +1297,7 @@ Creates an array of values by running each element in the `collection` through t
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Aliases
|
||||
*collect*
|
||||
@@ -1342,7 +1342,7 @@ Retrieves the maximum value of an `array`. If `callback` is passed, it will be e
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Arguments
|
||||
1. `collection` *(Array|Object|String)*: The collection to iterate over.
|
||||
@@ -1384,7 +1384,7 @@ Retrieves the minimum value of an `array`. If `callback` is passed, it will be e
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Arguments
|
||||
1. `collection` *(Array|Object|String)*: The collection to iterate over.
|
||||
@@ -1525,7 +1525,7 @@ The opposite of `_.filter`, this method returns the elements of a `collection` t
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Arguments
|
||||
1. `collection` *(Array|Object|String)*: The collection to iterate over.
|
||||
@@ -1622,7 +1622,7 @@ Checks if the `callback` returns a truthy value for **any** element of a `collec
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Aliases
|
||||
*any*
|
||||
@@ -1668,7 +1668,7 @@ Creates an array of elements, sorted in ascending order by the results of runnin
|
||||
|
||||
If a property name is passed for `callback`, the created "_.pluck" style callback will return the property value of the given element.
|
||||
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the propeties of the given object, else `false`.
|
||||
If an object is passed for `callback`, the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
|
||||
|
||||
#### Arguments
|
||||
1. `collection` *(Array|Object|String)*: The collection to iterate over.
|
||||
@@ -2175,7 +2175,7 @@ hello();
|
||||
### <a id="_assignobject--source1-source2--callback-thisarg"></a>`_.assign(object [, source1, source2, ..., callback, thisArg])`
|
||||
<a href="#_assignobject--source1-source2--callback-thisarg">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1135 "View in source") [Ⓣ][1]
|
||||
|
||||
Assigns own enumerable properties of source object(s) to the destination object. Subsequent sources will overwrite propery assignments of previous sources. If a `callback` function is passed, it will be executed to produce the assigned values. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
|
||||
Assigns own enumerable properties of source object(s) to the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the assigned values. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
|
||||
|
||||
#### Aliases
|
||||
*extend*
|
||||
@@ -2637,7 +2637,7 @@ Performs a deep comparison between two values to determine if they are equivalen
|
||||
4. `[thisArg]` *(Mixed)*: The `this` binding of `callback`.
|
||||
|
||||
#### Returns
|
||||
*(Boolean)*: Returns `true`, if the values are equvalent, else `false`.
|
||||
*(Boolean)*: Returns `true`, if the values are equivalent, else `false`.
|
||||
|
||||
#### Example
|
||||
```js
|
||||
@@ -2982,7 +2982,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
|
||||
### <a id="_mergeobject--source1-source2--callback-thisarg"></a>`_.merge(object [, source1, source2, ..., callback, thisArg])`
|
||||
<a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1987 "View in source") [Ⓣ][1]
|
||||
|
||||
Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined`, into the destination object. Subsequent sources will overwrite propery assignments of previous sources. If a `callback` function is passed, it will be executed to produce the merged values of the destination and source properties. If `callback` returns `undefined`, merging will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
|
||||
Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined`, into the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the merged values of the destination and source properties. If `callback` returns `undefined`, merging will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
|
||||
|
||||
#### Arguments
|
||||
1. `object` *(Object)*: The destination object.
|
||||
|
||||
42
lodash.js
42
lodash.js
@@ -1104,7 +1104,7 @@
|
||||
|
||||
/**
|
||||
* Assigns own enumerable properties of source object(s) to the destination
|
||||
* object. Subsequent sources will overwrite propery assignments of previous
|
||||
* object. Subsequent sources will overwrite property assignments of previous
|
||||
* sources. If a `callback` function is passed, it will be executed to produce
|
||||
* the assigned values. The `callback` is bound to `thisArg` and invoked with
|
||||
* two arguments; (objectValue, sourceValue).
|
||||
@@ -1513,7 +1513,7 @@
|
||||
* @param {Mixed} [thisArg] The `this` binding of `callback`.
|
||||
* @param- {Object} [stackA=[]] Internally used track traversed `a` objects.
|
||||
* @param- {Object} [stackB=[]] Internally used track traversed `b` objects.
|
||||
* @returns {Boolean} Returns `true`, if the values are equvalent, else `false`.
|
||||
* @returns {Boolean} Returns `true`, if the values are equivalent, else `false`.
|
||||
* @example
|
||||
*
|
||||
* var moe = { 'name': 'moe', 'age': 40 };
|
||||
@@ -1931,7 +1931,7 @@
|
||||
/**
|
||||
* Recursively merges own enumerable properties of the source object(s), that
|
||||
* don't resolve to `undefined`, into the destination object. Subsequent sources
|
||||
* will overwrite propery assignments of previous sources. If a `callback` function
|
||||
* will overwrite property assignments of previous sources. If a `callback` function
|
||||
* is passed, it will be executed to produce the merged values of the destination
|
||||
* and source properties. If `callback` returns `undefined`, merging will be
|
||||
* handled by the method instead. The `callback` is bound to `thisArg` and
|
||||
@@ -2329,7 +2329,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2372,7 +2372,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2434,7 +2434,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2498,7 +2498,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2593,7 +2593,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`
|
||||
*
|
||||
* @static
|
||||
@@ -2672,7 +2672,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2730,7 +2730,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2799,7 +2799,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -2982,7 +2982,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3082,7 +3082,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3146,7 +3146,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3312,7 +3312,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3468,7 +3468,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3594,7 +3594,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3702,7 +3702,7 @@
|
||||
* @category Arrays
|
||||
* @param {Number} [start=0] The start of the range.
|
||||
* @param {Number} end The end of the range.
|
||||
* @param {Number} [step=1] The value to increment or descrement by.
|
||||
* @param {Number} [step=1] The value to increment or decrement by.
|
||||
* @returns {Array} Returns a new range array.
|
||||
* @example
|
||||
*
|
||||
@@ -3754,7 +3754,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3827,7 +3827,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -3911,7 +3911,7 @@
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is passed for `callback`, the created "_.where" style callback
|
||||
* will return `true` for elements that have the propeties of the given object,
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
|
||||
Reference in New Issue
Block a user