typeback
v1.0.2
Published
allows to retrieve typed values in arrays and objects
Downloads
1
Maintainers
Readme
typeback
The library allows to retrieve typed value of strings by content. Arrays and objects are handled element-by-element. It allows to handle nested objects and arrays too.
how to use
> var typeback = require('typeback')
> typeback("123")
123
> typeback("123.4")
123.4
> typeback("abc")
"abc"
> typeback({a: "123", b: "123.4", c: ["1", "2", "3", "d"], d: "e"})
{a: 123, b: 123.4, c: [1, 2, 3, "d"], d: "e"}
licence
MIT