commit by magit in emacs@2022-09-14 19:36:46
This commit is contained in:
parent
75aeebef25
commit
1438f118f3
|
@ -20,6 +20,7 @@ Math.round(20.5); //21
|
||||||
|
|
||||||
|
|
||||||
// For iterating on keys of Arrays, Strings, or Objects, use for .. in :
|
// For iterating on keys of Arrays, Strings, or Objects, use for .. in :
|
||||||
|
const yourobject = {}
|
||||||
for (let key in yourobject) {
|
for (let key in yourobject) {
|
||||||
console.log(key, yourobject[key]);
|
console.log(key, yourobject[key]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue