Skip to content

Commit

Permalink
Fix: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Dec 6, 2023
1 parent a5e57cb commit 5c5bcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ console.log(filtered)
// Query will remove the last item from the tags array
const updateQuery = { $pop: { tags: 1 } }
// Make an update predicate function from the update query, validate the query according to the update schema
const updatePredicate = updateToPredicate(, { validate: true, context })
const updatePredicate = updateToPredicate(updateQuery, { validate: true, context })
// Filter the data according to the predicate
const updated = filtered.filter(updatePredicate)
console.log(updated)
Expand Down

0 comments on commit 5c5bcf7

Please sign in to comment.