Skip to content

Commit

Permalink
fix: incorrect code snippet description (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
palashmon committed May 6, 2023
1 parent 8f8b2da commit ccba923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/array-index/README.md
Expand Up @@ -24,6 +24,6 @@ index([{id: 'first', val: 1}, {id: 'second', val: 2}], 'id');
// {first: {id: 'first', val: 1}, second: {id: 'second', val: 2}}
index([{id: 'first', val: 1}, null], 'id'); // {first: {id: 'first', val: 1}}
index([], 'id'); // {}
index([], null); // undefined
index({}, 'id'); // undefined
index([], null); // throws error
index({}, 'id'); // throws error
```

0 comments on commit ccba923

Please sign in to comment.