util-array-object-or-both
Advanced tools
Comparing version 2.7.65 to 2.7.66
/** | ||
* util-array-object-or-both | ||
* Validate and normalise user choice: array, object or both? | ||
* Version: 2.7.65 | ||
* Version: 2.7.66 | ||
* Author: Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * License: MIT |
/** | ||
* util-array-object-or-both | ||
* Validate and normalise user choice: array, object or both? | ||
* Version: 2.7.65 | ||
* Version: 2.7.66 | ||
* Author: Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * License: MIT |
/** | ||
* util-array-object-or-both | ||
* Validate and normalise user choice: array, object or both? | ||
* Version: 2.7.65 | ||
* Version: 2.7.66 | ||
* Author: Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * License: MIT |
/** | ||
* util-array-object-or-both | ||
* Validate and normalise user choice: array, object or both? | ||
* Version: 2.7.65 | ||
* Version: 2.7.66 | ||
* Author: Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * License: MIT |
@@ -1,1 +0,1 @@ | ||
{"_quickTake.js":{"title":"Quick Take","content":"import { strict as assert } from \"assert\";\nimport arrObjOrBoth from \"util-array-object-or-both\";\n\n// normalises string, a user preference:\n\nassert.equal(arrObjOrBoth(\"arrays\"), \"array\");\nassert.equal(arrObjOrBoth(\"array\"), \"array\");\nassert.equal(arrObjOrBoth(\"arr\"), \"array\");\nassert.equal(arrObjOrBoth(\"a\"), \"array\");\n\nassert.equal(arrObjOrBoth(\"objects\"), \"object\");\nassert.equal(arrObjOrBoth(\"object\"), \"object\");\nassert.equal(arrObjOrBoth(\"obj\"), \"object\");\nassert.equal(arrObjOrBoth(\"o\"), \"object\");\n\nassert.equal(arrObjOrBoth(\"whatever\"), \"any\");\nassert.equal(arrObjOrBoth(\"either\"), \"any\");\nassert.equal(arrObjOrBoth(\"both\"), \"any\");\nassert.equal(arrObjOrBoth(\"any\"), \"any\");\nassert.equal(arrObjOrBoth(\"all\"), \"any\");\nassert.equal(arrObjOrBoth(\"e\"), \"any\");"}} | ||
{"_quickTake.js":{"title":"Quick Take","content":"import { strict as assert } from \"assert\";\nimport arrObjOrBoth from \"util-array-object-or-both\";\n\n// normalises string, a user preference:\n\nassert.equal(arrObjOrBoth(\"arrays\"), \"array\");\nassert.equal(arrObjOrBoth(\"array\"), \"array\");\nassert.equal(arrObjOrBoth(\"arr\"), \"array\");\nassert.equal(arrObjOrBoth(\"a\"), \"array\");\n\nassert.equal(arrObjOrBoth(\"objects\"), \"object\");\nassert.equal(arrObjOrBoth(\"object\"), \"object\");\nassert.equal(arrObjOrBoth(\"obj\"), \"object\");\nassert.equal(arrObjOrBoth(\"o\"), \"object\");\n\nassert.equal(arrObjOrBoth(\"whatever\"), \"any\");\nassert.equal(arrObjOrBoth(\"either\"), \"any\");\nassert.equal(arrObjOrBoth(\"both\"), \"any\");\nassert.equal(arrObjOrBoth(\"any\"), \"any\");\nassert.equal(arrObjOrBoth(\"all\"), \"any\");\nassert.equal(arrObjOrBoth(\"e\"), \"any\");"}} |
{ | ||
"name": "util-array-object-or-both", | ||
"version": "2.7.65", | ||
"version": "2.7.66", | ||
"description": "Validate and normalise user choice: array, object or both?", | ||
@@ -114,3 +114,3 @@ "keywords": [ | ||
"eslint": "^7.9.0", | ||
"lect": "^0.14.1", | ||
"lect": "^0.14.3", | ||
"rollup": "^2.28.1", | ||
@@ -117,0 +117,0 @@ "rollup-plugin-ascii": "^0.0.3", |
Sorry, the diff of this file is not supported yet
51917