Questions tagged [object-set-all-values-to]

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

1 questions
2
votes
3 answers

Error using ES Module import for object-set-all-values-to

In an Angular 6 project I'm trying to use the npm package object-set-all-values-to 3.9.45. I did the following: 1- Installed it using npm i object-set-all-values-to ✔️ OK 2- Tried to import it ❌ Error 1st option import setAllValuesTo from…