angus-c / just

A library of dependency-free JavaScript utilities that do just one thing.
https://anguscroll.com/just
MIT License
6k stars 208 forks source link

Fix incorrect code snippet description for `just-index` #553

Closed palashmon closed 1 year ago

palashmon commented 1 year ago

Updated the readme file for just-index to reflect that the code snippet throws an error instead of returning undefined, which was originally stated. This change ensures that the code snippet description is accurate and helpful for developers.

Code snippet:

index([], null);    // throws error
index({}, 'id');    // throws error

URL:

angus-c commented 1 year ago

thank you!