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.2 to 1.0.3

2

CHANGELOG.md

@@ -1,2 +0,2 @@

# 1.0.1, 1.0.2
# 1.0.1, 1.0.2, 1.0.3

@@ -3,0 +3,0 @@ - Added documentation to README and added changelog.

{
"name": "call-if",
"version": "1.0.2",
"version": "1.0.3",
"description": "Micro-library of functions that call a given function if a given condition is met.",

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

@@ -6,4 +6,5 @@ # call-if [![NPM Package](https://img.shields.io/npm/v/call-if.svg?style=flat-square)][npm]

> A micro-library of functions that call a given function if a given condition is met.
>
> This library was created for both convenience purposes and for the cleaner code that
> can be produced by using it's provided functions.
> can be produced by using its provided functions.

@@ -53,11 +54,11 @@ > **NOTE:** Compatible with ES4+ browsers, AMD, CommonJS, ES6 Imports, and HTML

- **condition** `Boolean`
- **condition** `?Boolean`
Condition used to determine whether to call end return the result of `func` or `undefined`.
- **func** `*`
- **func** `Function`
Function to be called if `condition` evaluates to `true`.
- **...funcParams** `*`
- **...funcParams** `?...*`

@@ -75,11 +76,11 @@ Parameters to be passed to `func`, if called.

- **condition** `Boolean`
- **condition** `?Boolean`
Condition used to determine whether to call end return the result of `func` or `null`.
- **func** `*`
- **func** `Function`
Function to be called if `condition` evaluates to `true`.
- **...funcParams** `*`
- **...funcParams** `?...*`

@@ -86,0 +87,0 @@ Parameters to be passed to `func`, if called.

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