0.1.3 • Published 6 years ago

string-from v0.1.3

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

string-from

NOTE: string-from was renamed to @extra-string/from. NPM

Create string from iterable, like Array.from().

const from = require('string-from');
// from(<iterable>, [mapFn], [thisArg])

from(['a', 'b']);
// 'ab'
from('abc', (v) => String.fromCharCode(v.charCodeAt()+1));
// 'bcd'
from(new Set().add('a').add('b'));
// 'ab'
from(new Map().set('a', 1).set('b', 2));
// 'a,1b,2'
0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

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