diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-22 01:46:30 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-22 01:46:30 +0200 |
commit | f0aae6875bc1da724d1960805f88b4b707742a44 (patch) | |
tree | 0fb3be5a8ac171e47a4447d8408566ea80043838 /js/utility | |
parent | d3a84beec07416e9753be6b0b1cf3dfe8deb4037 (diff) |
fix iterators comment
Diffstat (limited to 'js/utility')
-rw-r--r-- | js/utility/Iterators.js (renamed from js/utility/iterators.js) | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/utility/iterators.js b/js/utility/Iterators.js index b83e5de82..3c5e34b18 100644 --- a/js/utility/iterators.js +++ b/js/utility/Iterators.js @@ -13,7 +13,8 @@ const hasOwn = Object.prototype.hasOwnProperty; /** * From http://wiki.ecmascript.org/doku.php?id=harmony:iterators#standard_api - * Allows to iterate over objects like for (let [key, value] of objects) + * Allows to iterate over objects + * like: for (let [key, value] of objects) */ window.items = function (obj) { 'use strict'; @@ -32,7 +33,7 @@ window.items = function (obj) { /** * Iterates over a list and returns the item and index - * like: (let [index, value] of list) + * like: for (let [index, value] of enumerate(list)) * Similar to Pythons enumerate() iterator function */ window.enumerate = function (list) { |