The makeAllKeysLowerCase function is established to change all keys of the array data to lower-case.
var record = new Record([
{"data1":"hello world", "DATA2":123, "data3":new Date("2016/12/13") },
{"data1":"hello human", "DATA2":456, "data3":new Date("2016/12/14") }
]);
record.makeAllKeysLowerCase();
/* the data is changed to the next
[
{"data1":"hello world", "data2":123, "data3":"..." },
{"data1":"hello human", "data2":456, "data3":"..." }
]
*/
Calling | Returning |
---|---|
record .makeAllKeysLowerCase ( ) | Record |