parse-to-all (parse to All Types)
This library parses all possible outputs
Return types
- integer
- float
- string
- array
- arrayInteger
- arrayFloat
- arrayString
- object
Installation
npm install parse-to-all
Usage
parseAll(value)
const pa = ; console; // Returns: integer: 12 float: 1255 string: '12.55' array: 1255 arrayInteger: 12 arrayFloat: 1255 arrayString: '12.55' object: value: 1255