typeof-arguments
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "typeof-arguments", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Validate the types of arguments passed to the function.", | ||
@@ -20,4 +20,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"of-type": "^1.0.4" | ||
"of-type": "^1.0.6" | ||
} | ||
} |
@@ -47,3 +47,3 @@ # Description | ||
* the `callback` function is executed **only** if at least one argument passed through the enclosing function is of invalid type. | ||
* the parameter **`actual`** [String] and **`expected`** [String] is passed through the callback function. The parameter `actual` indicates the actual type of the argument passed to the enclosing function, eg `'[String]'`, when the `expected` parameter indicates the type(s) expected by the user, eg. `'[Array]'`, `'[Boolean|Number]'`, `/array|object/i`. | ||
* the parameter **`actual`** [String] and **`expected`** [String] is passed through the callback function. The parameter `actual` indicates the actual type of the argument passed through the enclosing function, eg. `'[String]'`, when the `expected` parameter indicates the type(s) expected by the user, eg. `'[Array]'`, `'[Boolean|Number]'`, `/array|object/i`. | ||
@@ -63,3 +63,4 @@ ```javascript | ||
#### Return value | ||
The function `args()` returns `true` when all arguments passed to the enclosing function are of **valid** types. | ||
The function `args()` returns `true` when all arguments passed through the enclosing function are of **valid** types. | ||
The function `args()` returns `false` when at least **one** of the arguments passed through the enclosing function is of **invalid** type. | ||
@@ -66,0 +67,0 @@ |
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
11607
189
Updatedof-type@^1.0.6