Comparing version 2.2.12 to 2.2.13
15
IsA.js
@@ -22,3 +22,3 @@ var boolTag = '[object Boolean]', | ||
module.exports = { | ||
let Services = { | ||
getPrototypeOf: Object.getPrototypeOf, | ||
@@ -34,2 +34,11 @@ isHostObject: function (value) { | ||
}, | ||
isDefined (value) { | ||
return value !== undefined && value !== null | ||
}, | ||
isIterable (obj) { | ||
if ( !Services.isDefined(obj) ) | ||
return false | ||
return typeof obj[Symbol.iterator] === 'function' | ||
}, | ||
isPlainObject: function (value) { | ||
@@ -95,3 +104,3 @@ if (!this.isObjectLike(value) || objToString.call(value) !== objectTag || this.isHostObject(value)) { | ||
isValidPath: function (object, path) { | ||
return !!module.exports.walk(object, path, null) | ||
return !!Services.walk(object, path, null) | ||
}, | ||
@@ -147,1 +156,3 @@ parameterNames: function ( func ) { | ||
} | ||
module.exports = Services |
{ | ||
"name": "isa.js", | ||
"version": "2.2.12", | ||
"version": "2.2.13", | ||
"description": "Very minimal collection is isA functions. isObject, isArray, isDate...", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/imrefazekas/isa", |
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
13502
338