execute-if-function
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "execute-if-function", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Execute passed argument if it is a function.", | ||
@@ -5,0 +5,0 @@ "main": "readme.js", |
@@ -21,5 +21,6 @@ /** | ||
*/ | ||
const executeIfFunction = (fn) => | ||
typeof fn === 'function' ? fn() : fn; | ||
var executeIfFunction = function executeIfFunction(fn) { | ||
return typeof fn === 'function' ? fn() : fn; | ||
}; | ||
module.exports = executeIfFunction; |
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
9294
37
26