2016-10-10 03:43:44 +02:00
|
|
|
/*!
|
|
|
|
* for-in <https://github.com/jonschlinkert/for-in>
|
|
|
|
*
|
2017-04-20 03:09:25 +02:00
|
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
|
|
* Released under the MIT License.
|
2016-10-10 03:43:44 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2017-04-20 03:09:25 +02:00
|
|
|
module.exports = function forIn(obj, fn, thisArg) {
|
|
|
|
for (var key in obj) {
|
|
|
|
if (fn.call(thisArg, obj[key], key, obj) === false) {
|
2016-10-10 03:43:44 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|