@cush/execall

1.0.0 • Public • Published

@cush/execall v1.0.0

Returns a new array of RegExp.prototype.exec matches.

Forked from https://github.com/eush77/regexp.execall

const all = require('@cush/execall');

all(regexp, string); // => []
  • Empty matches are excluded from the array.
  • When regexp.global is false, the array will either have one match or none.
  • When string is falsy, the array will always be empty.

Readme

Keywords

none

Package Sidebar

Install

npm i @cush/execall

Weekly Downloads

10

Version

1.0.0

License

MIT

Unpacked Size

2.32 kB

Total Files

4

Last publish

Collaborators

  • aleclarson