This package is part of a set of packages in codsen repository.
To install it use: npm i object-set-all-values-to
This takes any input: nested array, nested plain object, etc and walk through it recursively and if it finds any plain objects, assign all their keys to a given second input argument or false if the second argument is not provided. It does not mutate the input arguments. Operations are done on a cloned input.
npm: https://www.npmjs.com/package/object-set-all-values-to
GitLab: https://gitlab.com/codsen/codsen/tree/master/packages/object-set-all-values-to