Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
19
node_modules/for-own/index.js
generated
vendored
Normal file
19
node_modules/for-own/index.js
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*!
|
||||
* for-own <https://github.com/jonschlinkert/for-own>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var forIn = require('for-in');
|
||||
var hasOwn = Object.prototype.hasOwnProperty;
|
||||
|
||||
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);
|
||||
}
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue