A lot of programming is merely translation between different structures. So, let's make that as painless as possible. Typed Mutations provides a simple syntax that lets you focus on behavior, rather than wrangling types.
It exposes two concepts, KeyValues
(for objects), and Collections
for arrays.
For examples of usage, check out the tests
For further explanation of behavior, check out the comments in src
If you'd like to fiddle around with it, try it out on RunKit!
This package is distributed using NPM. To use in your project:
npm install @liveramp/typed-mutations