object test

node v10.24.1
version: master
endpointsharetweet
var data = [ { item: "hello world", otheritem: "asdf", }, { item: "hello0 wo0rld", otheritem: "as1df", }, ] for (var i = 0; i < data.length; i++) { for (key in data[i]) { data[i].key = key + "a" console.log(data) } }
Loading…

no comments

    sign in to comment