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.2.0 to 0.3.0

4

lib/enablePartialApplication.d.ts

@@ -1,3 +0,1 @@

export default function enablePartialApplication(
fn: (...args: any[]) => any
): (...args: any[]) => (...args: any[]) => any
export default function enablePartialApplication(fn: (...args: any[]) => any): (...args: any[]) => (...args: any[]) => any;

@@ -1,28 +0,23 @@

'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,1 +0,1 @@

export default function identity<T>(value: T): T
export default function identity<T>(value: T): T;

@@ -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,4 +0,4 @@

import enablePartialApplication from './enablePartialApplication'
import identity from './identity'
import isFunction from './isFunction'
export { enablePartialApplication, identity, isFunction }
import enablePartialApplication from './enablePartialApplication';
import identity from './identity';
import isFunction from './isFunction';
export { enablePartialApplication, identity, isFunction };

@@ -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,1 +0,1 @@

export default function isFunction(value: any): boolean
export default function isFunction(value: any): boolean;

@@ -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.2.0",
"version": "0.3.0",
"description": "useful functions for handling functions",

@@ -33,3 +33,3 @@ "keywords": [

},
"gitHead": "2836a552af751c2f10ca6b8affc9f68cdd956b3b"
"gitHead": "ba02bc5cb05a0ac4a16f14d72fb539d03d1df3aa"
}
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