Update an item in an array by matching a property and value. Returns a new array with the item updated.
The original array.
The property key to match.
The value to match.
A export function that returns the updated item.
A new array with the updated item.
Update an item in an array by matching a property and value. Returns a new array with the item updated.