Evaluate prefix after assignment
Emanuel Allen
emanuelallen at hotmail.com
Tue May 12 17:58:21 UTC 2015
Is this the same across browsers:
var i = 0, arr = 'a','b','c'], e,
obj = {a:{name:'a'}, b:{name:'b'},c:{name:'c'}};
while ((e=arr[i])&&(arr[i++]=obj[e]));
//output:
>arr
>[{name:'a'},{name:'b'},{name:'c'}]
I'm worrying about the "i++"... I test it out in node's repl... V8... Should the language it self be the same across browsers in situation like this?
Sent from my iPhone
More information about the es-discuss
mailing list