typecast
Simple typecasting in javascript.
Example
var typecast = ; // => '123' // => 123 // => ['a', 'b', 'c'] // => false
API
typecast(val, type)
Cast given val
to type
.string(val)
Cast val
to String
.number(val)
Cast val
to Number
.array(val)
Cast val
to Array
.boolean(val)
Cast val
to Boolean
Licence
MIT