Is there a way to use the string notation in the _.set method to match all items in a nested array?
(e.g. hopefully similar to MongoDB's positional all operator)
const doc = {
nested: [{a: 1}, {a: 2}, {a: 3}]
}
_.set(doc, "nested.$[].a", 5)
// console.log(doc)
// {
// nested: [{a : 5}, {a: 5}, {a: 5}]
// }