2.0.20 • Published 4 years ago

@extra-string/from.min v2.0.20

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

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

This is part of package extra-string.

This is browserified, minified version of @extra-string/from. It is exported as global variable string_from. CDN: unpkg, jsDelivr.

const from = require('@extra-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'

extra-string

2.0.20

4 years ago

2.0.19

4 years ago

2.0.18

4 years ago

2.0.17

4 years ago