I have:
var myAbc = { 0: true, 1: false, 2: true };
and i want to change de keys like:
var myAbc = { key1: true, key2: false, key3: true };
i have already tried this:
for (var key in array) {
key = value;
}
but did not change the key of the array out side of the for, any help?
Try this function:
Check here
Something like this perhaps?
If you can use es6, you can do this in one line: