diff options
Diffstat (limited to 'node_modules/for-own/index.js')
-rw-r--r-- | node_modules/for-own/index.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/node_modules/for-own/index.js b/node_modules/for-own/index.js index d07256c7c..74e2d7551 100644 --- a/node_modules/for-own/index.js +++ b/node_modules/for-own/index.js @@ -1,8 +1,8 @@ /*! * for-own <https://github.com/jonschlinkert/for-own> * - * Copyright (c) 2014-2016, Jon Schlinkert. - * Licensed under the MIT License. + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. */ 'use strict'; @@ -10,10 +10,10 @@ var forIn = require('for-in'); var hasOwn = Object.prototype.hasOwnProperty; -module.exports = function forOwn(o, fn, thisArg) { - forIn(o, function(val, key) { - if (hasOwn.call(o, key)) { - return fn.call(thisArg, o[key], key, o); +module.exports = function forOwn(obj, fn, thisArg) { + forIn(obj, function(val, key) { + if (hasOwn.call(obj, key)) { + return fn.call(thisArg, obj[key], key, obj); } }); }; |