iterable-regexp-exec
Iterable interface for RegExp.prototype.exec()
Compatible with multiple other ES2015 features (e.g. spread operator
, Array.from()
, for..of
).
Install
$ npm install --save iterable-regexp-exec
Usage
const iterableRegexpExec = ; const res = ; ...res;//=> ['r', 'i', 'n', 'o', 's']
API
iterableRegexpExec(regexp, string)
Yields regexp.exec(string)
once per iteration.
regexp
Type: regexp
string
Type: boolean
License
MIT © Dmitriy Sobolev