@yuler/is-regexp
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

is-regexp

Check if a value is a regular expression

Why not just use instanceof instead of this package?

instanceof does not work correctly for all types and it does not work across realms. Examples of realms are iframes, windows, web workers, and the vm module in Node.js.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @yuler/is-regexp

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

1.19 kB

Total Files

5

Last publish

Collaborators

  • yuler