@loadsmart/utils-function
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -1,23 +0,28 @@ | ||
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
'use strict' | ||
var __spreadArrays = | ||
(this && this.__spreadArrays) || | ||
function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) | ||
s += arguments[i].length | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j] | ||
return r | ||
} | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
function enablePartialApplication(fn) { | ||
return function partiallyAppplicable() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
if (args.length >= fn.length) { | ||
return fn.apply(void 0, args); | ||
} | ||
return enablePartialApplication(fn.bind.apply(fn, __spreadArrays([null], args))); | ||
}; | ||
return function partiallyAppplicable() { | ||
var args = [] | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i] | ||
} | ||
if (args.length >= fn.length) { | ||
return fn.apply(void 0, args) | ||
} | ||
return enablePartialApplication( | ||
fn.bind.apply(fn, __spreadArrays([null], args)) | ||
) | ||
} | ||
} | ||
exports.default = enablePartialApplication; | ||
//# sourceMappingURL=enablePartialApplication.js.map | ||
exports.default = enablePartialApplication | ||
//# sourceMappingURL=enablePartialApplication.js.map |
@@ -1,7 +0,7 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
'use strict' | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
function identity(value) { | ||
return value; | ||
return value | ||
} | ||
exports.default = identity; | ||
//# sourceMappingURL=identity.js.map | ||
exports.default = identity | ||
//# sourceMappingURL=identity.js.map |
@@ -1,10 +0,10 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isFunction = exports.identity = exports.enablePartialApplication = void 0; | ||
var enablePartialApplication_1 = require("./enablePartialApplication"); | ||
exports.enablePartialApplication = enablePartialApplication_1.default; | ||
var identity_1 = require("./identity"); | ||
exports.identity = identity_1.default; | ||
var isFunction_1 = require("./isFunction"); | ||
exports.isFunction = isFunction_1.default; | ||
//# sourceMappingURL=index.js.map | ||
'use strict' | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
exports.isFunction = exports.identity = exports.enablePartialApplication = void 0 | ||
var enablePartialApplication_1 = require('./enablePartialApplication') | ||
exports.enablePartialApplication = enablePartialApplication_1.default | ||
var identity_1 = require('./identity') | ||
exports.identity = identity_1.default | ||
var isFunction_1 = require('./isFunction') | ||
exports.isFunction = isFunction_1.default | ||
//# sourceMappingURL=index.js.map |
@@ -1,8 +0,8 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
'use strict' | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
function isFunction(value) { | ||
var type = typeof value; | ||
return value != null && type == 'function'; | ||
var type = typeof value | ||
return value != null && type == 'function' | ||
} | ||
exports.default = isFunction; | ||
//# sourceMappingURL=isFunction.js.map | ||
exports.default = isFunction | ||
//# sourceMappingURL=isFunction.js.map |
{ | ||
"name": "@loadsmart/utils-function", | ||
"private": false, | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "useful functions for handling functions", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ba02bc5cb05a0ac4a16f14d72fb539d03d1df3aa" | ||
"gitHead": "4f6634e1b44cfac6d29729db105c6183cba50f0d" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
60
5684
1