Comparing version 0.1.0 to 0.1.1
(function() { | ||
var isFunction; | ||
var isArray, isFunction; | ||
isFunction = function(v) { | ||
return 'function' === typeof v; | ||
}; | ||
isArray = require('./is/type/array'); | ||
isFunction = require('./is/type/function'); | ||
module.exports = function(dest, sources, filter) { | ||
@@ -20,4 +20,5 @@ var key, keys, src, value, _i, _j, _k, _l, _len, _len1, _len2, _len3; | ||
keys = Object.keys(src); | ||
for (value = _j = 0, _len1 = keys.length; _j < _len1; value = ++_j) { | ||
key = keys[value]; | ||
for (_j = 0, _len1 = keys.length; _j < _len1; _j++) { | ||
key = keys[_j]; | ||
value = src[key]; | ||
if (filter(key, value)) { | ||
@@ -24,0 +25,0 @@ dest[key] = value; |
@@ -21,3 +21,3 @@ var util = module.exports = { | ||
isDate: require('./is/type/date'), | ||
isRegExp: require('./is/type/regExp'), | ||
isRegExp: require('./is/type/regexp'), | ||
isArguments: require('./is/type/arguments'), | ||
@@ -24,0 +24,0 @@ isEmpty: require('./is/empty'), |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/snowyu/util-ex.js", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": { | ||
@@ -8,0 +8,0 @@ "name": "Riceball LEE", |
@@ -21,3 +21,3 @@ var util = module.exports = { | ||
isDate: require('./is/type/date'), | ||
isRegExp: require('./is/type/regExp'), | ||
isRegExp: require('./is/type/regexp'), | ||
isArguments: require('./is/type/arguments'), | ||
@@ -24,0 +24,0 @@ isEmpty: require('./is/empty'), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60307