Share your code.
The main differences with autocast are:
- hexadecimal and octals are not automatically casted, they remain as string values. Casing them is as simple as adding a plus sign in front of the string +"0xff".
- "" and "-" are both casted to an empty string.
- functions objects and array are not casted by default
- supports deep casting by passing an optional deep flag.
npm install castit --save
var cast = ;
> var cast = ;Function: cast>5>58>"5.8.8">null>undefined>NaN>true>false>"normal string">fn>nested: false