javascript-allonge-six icon indicating copy to clipboard operation
javascript-allonge-six copied to clipboard

https://leanpub.com/javascriptallongesix

Results 22 javascript-allonge-six issues
Sort by recently updated
recently updated
newest added

The **filterIteratorWith** function on page 156 (pdf, 4/14/16) did not work for me. I believe the `const` declaration in the `do` block is the culprit. I got it to execute...

Code sample top of page 151 (pdf 4/14/16); The object `eachIteration` is called in the `while` statement without being declared.

I got a different return value for the code sample: `plus1(undefined);` //=> NaN not null

In the subsection **memoizing recursive functions**, the phrase "functional expressions" appears a few times. Perhaps "function expression" auto-corrected to functional expression?

The memoized code recipe at the bottom of page 216 (pdf version, 4/14/16) fails when combined with subsequent code samples. I believe that the following line is the culprit: `const...

e.g. ``` javascript const mapIterableWith = function * (fn, iterable) { for (const element of iterable) { yield fn(element); } }; ```

I'm new to JS so it's entirely possible I'm just not understanding how the `copy` function should work. However, in my Firefox browser (which had no issues with any example...

Probably warrants an explanation of the difference in semantics.