validator-types

1.0.0 • Public • Published

Validator types for Javascript

All validation types

import {isArray, isBoolean, isDate, isFunction, isNumber, isObject, isRegex, isString} from './path/to/validator-types';

if(isArray(value)){
  ...
}

if(isBoolean(value)){
  ...
}

if(isDate(value)){
  ...
}

if(isFunction(value)){
  ...
}

if(isNumber(value)){
  ...
}

if(isObject(value)){
  ...
}

if(isRegex(value)){
  ...
}

if(isString(value)){
  ...
}

Readme

Keywords

none

Package Sidebar

Install

npm i validator-types

Weekly Downloads

4

Version

1.0.0

License

ISC

Unpacked Size

3.46 kB

Total Files

11

Last publish

Collaborators

  • swcode