Skip to content

Commit

Permalink
fix readme typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Mar 1, 2022
1 parent 0ef865b commit c877c9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { pick } from 'filter-anything'

const squirtle = { id: '007', name: 'Squirtle', type: 'water' }

const withoutId = pick(squirtle, ['name', 'type'])
const newObject = pick(squirtle, ['name', 'type'])
// returns { name: 'Squirtle', type: 'water' }
```

Expand All @@ -54,7 +54,7 @@ import { omit } from 'filter-anything'

const squirtle = { id: '007', name: 'Squirtle', type: 'water' }

const withoutId = omit(squirtle, ['name', 'type'])
const withoutId = omit(squirtle, ['id'])
// returns { name: 'Squirtle', type: 'water' }
```

Expand Down Expand Up @@ -91,8 +91,8 @@ Yes! You can also work with wildcards by using `*` in the path.

```js
const doc = {
'123': { keep: '📌', discard: '✂️' },
'456': { keep: '📌', discard: '✂️' },
123: { keep: '📌', discard: '✂️' },
456: { keep: '📌', discard: '✂️' },
}
// use wildcard *
omit(doc, ['*.discard'])
Expand Down

0 comments on commit c877c9a

Please # to comment.