Native | JS devs expected to know it, but takes time to master | Poor, common source of errors | Slow (linear) for large amounts of data | Manually copy nested properties, map / filter / slice to update or delete | Built-in |
---|---|---|---|---|---|
Small number of concepts, but potentially alien to FP newbies | Good, but be careful with paths | Comparable to native | Create lenses for nested data, use them with view / set / over , manipulate via FP techniques (composition, partial application) | Versatile patterns | |
One API method | Good, but has some edge cases | Comparable to native | Use normally-mutating native actions on a draft object, actions instead become immutable updates | Easy API | |
Larger library with many API methods | Good, but be careful with paths | Excellent per se, but slowed by conversion | Use library's data structures and methods instead of native types, convert where necessary | Faster algos |