Do you know any better and faster way to convert a string to the type it represents?
I\'ve always been using this function:
var convertType = functio
var string2literal = function (value){ var maps = { "NaN": NaN, "null": null, "undefined": undefined, "Infinity": Infinity, "-Infinity": -Infinity } return ((value in maps) ? maps[value] : value); };
There are many weird rules in dynamic data type converting, just map it.