liveBook · Manning

Lodash FP module

As explained in Data-Oriented Programming: Reduce software complexity

The Lodash FP module is the Lodash module that provides functional-programming-oriented versions of Lodash functions.

When ordinary Lodash changes shared catalog data, the Lodash FP module offers immutable versions of its functions instead. An immutable function creates a new data version without changing the value it receives. section 4.2

Updating nested catalog data

Set ["catalog", "booksByIsbn", "978-1779501127", "publicationYear"] to 1986, assigning the returned value to nextLibraryData while preserving libraryData. section 4.2

How Data-Oriented Programming: Reduce software complexity covers it

How deep it goes
Explains immutable _.set, signature configuration, and a nested update, while deferring broader FP theory.
Examples
Demonstrates updating Watchmen’s publication year through a nested catalog path.
What it assumes
Assumes familiarity with Lodash and nested data paths while defining immutability from zero.
What you can do after
Apply it via Lodash FP to create updated nested data without mutating the original value.
How it connects
Connects Lodash FP functions with immutability, argument signatures, nested data paths, and structural sharing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data-Oriented Programming: Reduce software complexity. The section links point to the parts of the book it draws on.