Socket
Socket
Sign inDemoInstall

call-if

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

call-if - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 1.0.4
- **[FIXED]** syntax issue in `index.js`.
# 1.0.1, 1.0.2, 1.0.3

@@ -2,0 +8,0 @@

2

index.js

@@ -48,4 +48,4 @@ /**

*/
export function callIf(condition, func ...funcParams) {
export function callIf(condition, func, ...funcParams) {
return (condition ? func(...funcParams) : undefined);
}
{
"name": "call-if",
"version": "1.0.3",
"version": "1.0.4",
"description": "Micro-library of functions that call a given function if a given condition is met.",

@@ -5,0 +5,0 @@ "authors": [

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