@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.

/@yuler/is-regexp/

    Package Sidebar

    Install

    npm i @yuler/is-regexp

    Weekly Downloads

    2

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    1.19 kB

    Total Files

    5

    Last publish

    Collaborators

    • yuler