Open iDevGon opened 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
es-toolkit | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 5, 2024 3:33pm |
Hello, thanks for your pull request!
I think we should add this function to our compat
library, since we recommend our users of the library to use the native counterpart (here, Array#every
) if possible. Could you move our library to the compat library, as in concat?
Also, in order to be in the compat library, we have to move lodash's test cases to our library. Could you help this if possible?
@raon0211 Sure! I'll complete that task and update this PR soon 😁
293
This pull request implements the
every
function, which behaves similarly to the every function in lodash.The function takes a collection and a predicate function as parameters and checks if all elements in the collection pass the predicate, returning true or false..
Below is a benchmark comparing our
every
function to lodash'severy
.