I have the data like
const data = [
{}
when i called the function updateScore like this
const result = update
i want to return the new object that add the value in array
const expected = [
];
How can i using the lodash for add object to array data