Appendix D. Lodash reference

Throughout the book, we have used Lodash ( to illustrate how to manipulate data with generic functions. But there is nothing unique about Lodash. The exact same approach could be implemented via other data manipulation libraries or custom code.

Moreover, we used Lodash FP ( to manipulate data without mutating it. By default, the order of the arguments in immutable functions is shuffled. The code in listing D.1 is needed when configuring Lodash in order to ensure the signature of the immutable functions is exactly the same as the mutable functions.

Listing D.1 Configuring immutable functions

_ = fp.convert({
  "cap": false,
  "curry": false,
 "fixed": ...

Get Data-Oriented Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.