The makeAllKeysUpperCase function is established to change all keys of the array data to upper-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.makeAllKeysUpperCase();
/* the data is changed to the next
[
{"DATA1":"hello world", "DATA2":123, "DATA3":"..." },
{"DATA1":"hello human", "DATA2":456, "DATA3":"..." }
]
*/
Calling | Returning |
---|---|
record .makeAllKeysUpperCase ( ) | Record |