LoudBit / is-too

Javascript type checking tool.
1 stars 0 forks source link

is-too

A simple type checker slash validation module striving for code minimalism and a thorough test suite.

The primary use case for is-too is validating input from a form, but feel free to use it however you wish.


bitHound Overall Score bitHound Dependencies

Installation

npm install is-too

Usage

var is = require('is-too')

var metal = "666" // |..|.  .|..|

if (is.present(metal) && is.integer(metal)) {
  headBang()
}

Checks

Antonyms

is.not[methodName] will return the inverse all methods.

is.not.greaterThan(1, 2) // true : 1 is not greater than 2

Helpers