Comparing version 2.2.15 to 2.2.16
@@ -141,3 +141,3 @@ var boolTag = '[object Boolean]', | ||
}, | ||
functionsOf (obj) { | ||
functionsOf (obj, asyncOnly = false) { | ||
let res = [] | ||
@@ -147,7 +147,7 @@ if (!obj) return res | ||
for (let m in obj) | ||
if ( obj[m] && this.isFunction( obj[m] ) ) | ||
if ( obj[m] && ( asyncOnly ? this.isAsyncFunction( obj[m] ) : this.isFunction( obj[m] ) ) ) | ||
res.push( obj[m] ) | ||
return res | ||
}, | ||
functionNames (obj) { | ||
functionNames (obj, asyncOnly = false) { | ||
let res = [] | ||
@@ -157,3 +157,3 @@ if (!obj) return res | ||
for (let m in obj) | ||
if ( obj[m] && this.isFunction( obj[m] ) ) | ||
if ( obj[m] && (asyncOnly ? this.isAsyncFunction( obj[m] ) : this.isFunction( obj[m] ) ) ) | ||
res.push( m ) | ||
@@ -160,0 +160,0 @@ return res |
{ | ||
"name": "isa.js", | ||
"version": "2.2.15", | ||
"version": "2.2.16", | ||
"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
13716