Comparing version 1.0.2 to 1.0.3
@@ -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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11539
113