sodiray / radash

Functional utility library - modern, simple, typed, powerful
https://radash-docs.vercel.app
MIT License
4.1k stars 160 forks source link

Fixed `isEmpty` confusing objects (with special properties e.g. `length` and `size`) with keyed or indexed collections plus new functions under typed #382

Open UnKnoWn-Consortium opened 5 months ago

UnKnoWn-Consortium commented 5 months ago

Description

feat(typed): added isTypedArray to account for typed arrays feat(typed): added isIndexedCollections for all sorts of arrays feat(typed): added isSet and isMap for Set and Map respectively feat(typed): added isKeyedCollections for both Set and Map feat(typed): added isBigInt for BigInt feat(typed): extended isInt to support BigInt feat(typed): updated isEmpty to account for the newly supported types fix(typed): fixed isEmpty confusing objects (with special properties e.g. length and size) with keyed or indexed collections test(typed): added and updated tests for the new methods

Checklist

Resolves

Resolves #366

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
radash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 10, 2024 10:27pm
aleclarson commented 1 month ago

Wow, this is an epic PR, @UnKnoWn-Consortium. We'd appreciate it over at radashi-org/radashi. Note that we've reorganized a bit, so it won't be a simple switch of the upstream branch. Also, if you decide to pursue this PR further, we'd need additions to the docs and we should bring the bug fixes into a separate PR, separate from the new features.