more docs and version fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-06-04 09:34:10 +03:00
parent 846d742893
commit d0a5d472a8
2 changed files with 4 additions and 1 deletions

View File

@ -1698,10 +1698,13 @@ Example:
var p = Promise.iter(
[1, 2, 3, Promise.resolve(4), [5, 6]],
function(elem){
// duplicate even numbers...
return elem % 2 == 0 ?
[elem, elem]
// return arrays as-is...
: elem instanceof Array ?
[elem]
// remove other elements...
: [] })
.then(function(lst){
console.log(lst) }) // -> [2, 2, 4, 4, [5, 6]]

View File

@ -1,6 +1,6 @@
{
"name": "ig-types",
"version": "6.11.4",
"version": "6.12.0",
"description": "Generic JavaScript types and type extensions...",
"main": "main.js",
"scripts": {