1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-09 18:50:47 +00:00
notes/node_modules/for-own/index.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

20 lines
414 B
JavaScript

/*!
* for-own <https://github.com/jonschlinkert/for-own>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
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);
}
});
};