0.1.6 • Published 7 years ago

iterable-replacex v0.1.6

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

iterable-replacex

NPM

Replace value with another value in iterable, like String.replace().

DEPRECATED: Please use iterable-replaceto instead.

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

replace(new Set(['a', 'b']), 'b', 'bb');
// ['a', 'bb']
replace(['a', 'b', 'c', 'd'], 'b', 'bb', 1, 3);
// ['bb', 'c']
replace('abcd', 'b', 'bb', 1, 3, ['z', 'x']);
// ['z', 'x', 'bb', 'c']
replace('abcd', 'b', 'bb', 1, 3, ['z', 'x'], 1);
// ['z', 'bb', 'c']
0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago