0.2.6 • Published 6 years ago

iterable-unzip v0.2.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

iterable-unzip

NPM

Unmerge values of each inner iterable at corresponding position, like _.unzip().

Use iterable-zip instead, as iterable-unzip as exactly the same.

const unzip = require('iterable-unzip');
// unzip(<iterable>, [begin=0], [end], [target=[]], [at])

unzip([['r', 'i', 'm'], [18, 9, 13]]);
// [['r', 18], ['i', 9], ['m', 13]]
unzip([['r', 18], ['i', 9], ['m', 13]]);
// [['r', 'i', 'm'], [18, 9, 13]] (reversible)
unzip(['pset', 'line', 'rect', 'fill'], 1);
// [['l', 'r', 'f'], ['i', 'e', 'i'], ['n', 'c', 'l'], ['e', 't', 'l']]
unzip(['pset', 'line', 'rect', 'fill'], 1, 3);
// [['l', 'r'], ['i', 'e'], ['n', 'c'], ['e', 't']]
unzip(['pset', 'line', 'rect', 'fill'], 1, 3, [['z'], ['y']]);
// [['z'], ['y'], ['l', 'r'], ['i', 'e'], ['n', 'c'], ['e', 't']]
unzip(['pset', 'line', 'rect', 'fill'], 1, 3, [['z'], ['y']], 1);
// [['z'], ['l', 'r'], ['i', 'e'], ['n', 'c'], ['e', 't']]
0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago