declarative-factory
Advanced tools
Comparing version 1.20.0 to 1.21.0
{ | ||
"name": "declarative-factory", | ||
"version": "1.20.0", | ||
"version": "1.21.0", | ||
"description": "A simple yet effective function to create factory objects through a declarative API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -42,10 +42,10 @@ /* | ||
* | ||
* - testCondition: A boolean value or a function returning a boolean value | ||
* which, if "true", instructs this function to return the "factory" factory | ||
* bound to this "testCondition". | ||
* Note that the first "factory" for which "testCondition" is truthy | ||
* will be returned and further tuples will be ignored; | ||
* - testCondition: A boolean value or a function returning a boolean value | ||
* which, if "true", instructs this function to return the "factory" factory | ||
* bound to this "testCondition". | ||
* Note that the first "factory" for which "testCondition" is truthy | ||
* will be returned and further tuples will be ignored; | ||
* | ||
* - factory: Anything. The value to return if "testCondition" is a truthy value | ||
* or a function returning a truthy value. | ||
* - factory: Anything. The value to return if "testCondition" is a truthy value | ||
* or a function returning a truthy value. | ||
* | ||
@@ -52,0 +52,0 @@ * The last element of the returned tuples MAY not be a tuple array with two elements, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
472902