2 * for-own <https://github.com/jonschlinkert/for-own>
4 * Copyright (c) 2014-2017, Jon Schlinkert.
5 * Released under the MIT License.
10 var forIn = require('for-in');
11 var hasOwn = Object.prototype.hasOwnProperty;
13 module.exports = function forOwn(obj, fn, thisArg) {
14 forIn(obj, function(val, key) {
15 if (hasOwn.call(obj, key)) {
16 return fn.call(thisArg, obj[key], key, obj);