for - each

Available in ES 2009.
This has been deprecated and replaced with for-of
This should not be used to iterate over an array.


var myObject = {prop1: 5, prop2: 13, prop3: 8}; 

for each (var item in myObject) {
  console.log(item);
}


© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext