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

call-func

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

call-func - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

16

build/cjs/src/callfunc.js

@@ -12,8 +12,20 @@ "use strict";

* @param {Function|any} maybeFunc
* @param {Array} args
* @param {Array} args
* @param {any} scope
* @param {any} def
* @param {any} def
* @returns {any}
*/
var callFunc = function callFunc(maybeFunc, args, scope, def) {
if (args === void 0) {
args = [];
}
if (scope === void 0) {
scope = _reshowConstant.T_UNDEFINED;
}
if (def === void 0) {
def = _reshowConstant.T_UNDEFINED;
}
return _reshowConstant.FUNCTION === typeof maybeFunc ? maybeFunc.apply(scope, args) : _reshowConstant.UNDEFINED !== typeof def ? def : maybeFunc;

@@ -20,0 +32,0 @@ };

2

package.json
{
"version": "0.3.5",
"version": "0.3.6",
"name": "call-func",

@@ -4,0 +4,0 @@ "repository": {

@@ -9,2 +9,2 @@ export default callFunc;

*/
declare function callFunc(maybeFunc: Function | any, args: any[], scope: any, def: any): any;
declare function callFunc(maybeFunc: Function | any, args?: any[], scope?: any, def?: any): any;

Sorry, the diff of this file is not supported yet

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