mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Bump to v3.6.0.
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
var baseFor = require('../internal/baseFor'),
|
||||
bindCallback = require('../internal/bindCallback'),
|
||||
keysIn = require('./keysIn');
|
||||
createForIn = require('../internal/createForIn');
|
||||
|
||||
/**
|
||||
* Iterates over own and inherited 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
|
||||
* with three arguments: (value, key, object). Iterator functions may exit
|
||||
* iteration early by explicitly returning `false`.
|
||||
*
|
||||
* @static
|
||||
@@ -29,11 +28,6 @@ var baseFor = require('../internal/baseFor'),
|
||||
* });
|
||||
* // => logs 'a', 'b', and 'c' (iteration order is not guaranteed)
|
||||
*/
|
||||
function forIn(object, iteratee, thisArg) {
|
||||
if (typeof iteratee != 'function' || typeof thisArg != 'undefined') {
|
||||
iteratee = bindCallback(iteratee, thisArg, 3);
|
||||
}
|
||||
return baseFor(object, iteratee, keysIn);
|
||||
}
|
||||
var forIn = createForIn(baseFor);
|
||||
|
||||
module.exports = forIn;
|
||||
|
||||
Reference in New Issue
Block a user