Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date Submitted |
---|---|---|---|---|
Page 98 In the middle of the page |
In the first example using the curry3 function, it reads: |
Dapeng Li | Nov 30, 2015 | |
Page 14, 15 example code at the bottom of 14, graph at 15 |
the function comparator is flaw and must not be used with array.sort |
Alfgaar | Jul 22, 2015 | |
Other Digital Version | 76 code listing |
I have the Amazon Kindle version of this book and it is fabulous. I just wantedto point out that the invoker function listed on page 76 could be improved by not having to take two arguments. The first argument which is the name of the function can simply be retrieved using the 'name' property of the function itself. I have the changed invoker function here: https://jsfiddle.net/uhayfnhL/ |
Bijoy Thomas | Jul 03, 2015 |
Other Digital Version | 15 Canada |
In Figure 1-10, the left side shows predicates named isPrime, isOdd and isEven. These predicates act on a single value and do not compare one value to another, so it doesn't make sense to use them with the comparator function. |
Ken Carpenter | Apr 05, 2015 |
Page 18 United States |
At the top of the page in the functions below the "second" should be _.second and the "nth(row, 2)" should be "_.nth(row, 2)" Both of these are underscore functions that are not written as such and are therefore very confusing. |
Andrew Nguyen | Mar 30, 2015 | |
Printed | Page 21 Last Code Block |
// 'array[i]' should be 'elem' or, |
Robert Chrzanowski | Feb 28, 2015 |
Page 101,103 source example and following paragraph on 101, first source examples on 102 and 104 |
In all four locations, functions that are intended to be implementations of 'divide10By' using partial application, are named 'over10Part' and 'over10Part1'. |
Rod Knowlton | Jan 05, 2015 | |
Page 214 1st Paragraph |
I believe "proccess" is spelled incorrectly. If I'm correct-- we just need one less c: "process." |
Jed Northridge | Jan 02, 2015 | |
Page 80 Australia |
In the following line, there should be a semi-colon following the return statement: |
David Rogers | Oct 10, 2014 | |
Printed | Page 46 United States |
The function rename seems overly complicated. Maybe it is just written that way to illustrate use of reduce, omit, and construct. Wouldn't it be easy to understand written like this? |
Mark Volkmann | Oct 05, 2014 |
Printed | Page 39 United States |
I think the cat function should verify that head is an array so it knows it can call concat on it. |
Mark Volkmann | Oct 05, 2014 |
Printed | Page 37 United States |
In footnote 6 about apply it says "I use null to signal that this should just refer to the global object". That's not correct. Passing null signals that this should refer to null. If inside the function a call is made to this.foo(), it won't try to call foo as a method on the global object. There will be an error. |
Mark Volkmann | Oct 05, 2014 |
Printed | Page 36 United States |
It seems undesirable for the functions allOf and anyOf to evaluate their arguments from right to left. I think most programmers would expect the opposite and assume that for purposes of short-circuiting their evaluation. |
Mark Volkmann | Oct 05, 2014 |
Printed | Page 20 United States |
It is implied that these lines are equivalent, but they are not. |
Mark Volkmann | Oct 05, 2014 |
Printed | Page 15 United States |
The comparator function on page 14 won't work as intended if the predicate function passed to it returns the true for both less than and equal to. In that case the comparator function will never return zero. The predicate function passed to comparator on page 15 should be "less", not "lessOrEqual". The easiest fix would be to change "lessOrEqual" to "less" throughout the examples in this section and of course use < instead of <=. |
Mark Volkmann | Oct 05, 2014 |