mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
more docs and version fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
846d742893
commit
d0a5d472a8
@ -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]]
|
||||
|
||||
@ -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": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user