is.regexp

1.0.2 • Public • Published

is.regexp

checks the given value is a RegExp Object

Build StatusCode Coverage 100%ISC License

API

var isRegExp = require('is.regexp')

isRegExp(RegExp Object)

Usage

var isRegExp = require('is.regexp');
 
var obj1 = /2[0-4][0-9]/
var obj2 = {};
 
isRegExp(obj1);// should return true
isRegExp(obj2);// should return false

Development

this projet has been set up with a precommit that forces you to follow a code style, no jshint issues and 100% of code coverage before commit

to run test

npm test

to run jshint

npm run jshint

to run code style

npm run code-style

to run check code coverage

npm run check-coverage

to open the code coverage report

npm run open-coverage

Package Sidebar

Install

npm i is.regexp

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • quim