mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Bump to v3.6.0.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
define(['../internal/baseForOwn', '../internal/bindCallback'], function(baseForOwn, bindCallback) {
|
||||
define(['../internal/baseForOwn', '../internal/createForOwn'], function(baseForOwn, createForOwn) {
|
||||
|
||||
/**
|
||||
* Iterates over own enumerable properties of an object invoking `iteratee`
|
||||
* for each property. The `iteratee` is bound to `thisArg` and invoked with
|
||||
* three arguments; (value, key, object). Iterator functions may exit iteration
|
||||
* three arguments: (value, key, object). Iterator functions may exit iteration
|
||||
* early by explicitly returning `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -27,12 +27,7 @@ define(['../internal/baseForOwn', '../internal/bindCallback'], function(baseForO
|
||||
* });
|
||||
* // => logs 'a' and 'b' (iteration order is not guaranteed)
|
||||
*/
|
||||
function forOwn(object, iteratee, thisArg) {
|
||||
if (typeof iteratee != 'function' || typeof thisArg != 'undefined') {
|
||||
iteratee = bindCallback(iteratee, thisArg, 3);
|
||||
}
|
||||
return baseForOwn(object, iteratee);
|
||||
}
|
||||
var forOwn = createForOwn(baseForOwn);
|
||||
|
||||
return forOwn;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user