typedas

1.0.0 • Public • Published

typedAs provides a few methods that help determine the type of a given variable. It's fast, easy to use and does nothing more than what is advertised (which is another way of saying that you will not load methods you don't actually need if all you want to do is check for variable types).

Install

On the server (node.js)

$ npm install typedAs

In the browser

<script src="typedAs.js"></script>

Methods

The methods available are very self-explanatory:

.isString(foo)

.isBool(foo)

.isNumber(foo)

.isInteger(foo)

.isFloat(foo)

.isArray(foo)

.isObject(foo)

.isFunction(foo)

.isUndefined(foo)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i typedas

      Weekly Downloads

      0

      Version

      1.0.0

      License

      MIT

      Last publish

      Collaborators

      • alexduloz