0.1.3 • Published 6 years ago
iterable-from v0.1.3
iterable-from
NOTE: iterable-from was renamed to @extra-iterable/from.
Get iterable from value, like Array.from().
const from = require('iterable-from');
// from(<value>)
from([8, 1, 12, 15]);
// [8, 1, 12, 15]
from(new Set('halo'));
// Set {'h', 'a', 'l', 'o'}
from({h: 'hindustan', a: 'aeronautics', l: 'limited', o: 'operation'});
// [['h', 'hindustan'], ['a', 'aeronautics'], ['l', 'limited'], ['o', 'operation']]
from(811215);
// [811215]