Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura
Emmanuel b7eccee437 Navbar před 4 roky
..
.eslintrc Navbar před 4 roky
.jscs.json Navbar před 4 roky
.npmignore Navbar před 4 roky
.travis.yml Navbar před 4 roky
CHANGELOG.md Navbar před 4 roky
LICENSE Navbar před 4 roky
Makefile Navbar před 4 roky
README.md Navbar před 4 roky
index.js Navbar před 4 roky
package.json Navbar před 4 roky
test.js Navbar před 4 roky

README.md

is-regex Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

Is this value a JS regex? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Example

var isRegex = require('is-regex');
var assert = require('assert');

assert.notOk(isRegex(undefined));
assert.notOk(isRegex(null));
assert.notOk(isRegex(false));
assert.notOk(isRegex(true));
assert.notOk(isRegex(42));
assert.notOk(isRegex('foo'));
assert.notOk(isRegex(function () {}));
assert.notOk(isRegex([]));
assert.notOk(isRegex({}));

assert.ok(isRegex(/a/g));
assert.ok(isRegex(new RegExp('a', 'g')));

Tests

Simply clone the repo, npm install, and run npm test