0.0.62-beta • Published 10 years ago

foolproof v0.0.62-beta

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

Foolproof.js

not available on npm just yet...

Foolproof.js is a group of helper functions for type checking. You can pass any object to a foolproof helper function and be certain it will never throw a nasty error since typeof is the first check that is always done on any value given.

Prototype.toString is used to provide more specific object type info. Try typeOf() on any object.

How to Include Foolproof.js

Foolproof gives you a couple options. Mainly we want to make it easy to use the helper functions as you would any other native JS feature.

You could use it like this:

var bp = require('foolproof')()

alert( bp.isString('this is a demo') );

But it was intended to make the helper functions available natively in your app's context, like this:

var App = (function(){

  require('foolproof').apply(this);

  // does stuff...

  alert( isString('this is a demo') );

  return this
})()
0.0.62-beta

10 years ago

0.0.61-beta

11 years ago

0.0.6-beta

11 years ago

0.0.5-beta

11 years ago

0.0.47-beta

11 years ago

0.0.46-beta

11 years ago

0.0.41

11 years ago

0.0.4

11 years ago

0.0.31

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago