Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@loadsmart/utils-function

Package Overview
Dependencies
Maintainers
20
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loadsmart/utils-function - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

45

lib/enablePartialApplication.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc