Skip to main content

CurateClick

github.com favicon

Prray

Prray 是一个支持异步操作的数组封装库,与原生数组兼容但提供更友好的异步处理方法,如 mapAsync、filterAsync 等,支持链式调用和并发控制。

Check out Prray on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

很多时候,如果数组对异步函数更友好,代码写起来会更自然一些Prray -- "Promisified" Array和数组保持兼容,但对异步操作更加友好。在某些场合可以替代原生数组,让你能这么写代码:javascriptconst urls = prray(array)const jsons = await urls.mapAsync(fetch).mapAsync(r => r.json())console.log(jsons)const files = prray(array2)await files.filterAsync(isExisted).sort(bySize).mapAsync(removeFile, { concurrency: 20 })- 和数组保持兼容- 异步也能链状调用- 支持并发限速实现上没有任何原型链污染和全局污染,测试良好(尤其在兼容性方面),也没有其他三方依赖https://github.com/Bin-Huang/prray

Latest Weekly Picks

Predict video virality before you publish.

Virality Predictor

Powerful Motion Control AI Video Generator

Motion Control AI

PlusGO 是面向中国大陆用户的 ChatGPT Plus 代充值服务平台。使用官方 CDKey,支持支付宝和微信扫码支付,平均 2 分钟完成 Plus 开通,自 2025 年起已为超过 10,000 名用户完成充值。

www.toolcenter.ai favicon
Weekly Pick

Discover the Best AI & Productivity Tools — 1,500+ tools with honest reviews.

ToolCenter
huntereyes.net favicon
Weekly Pick

AI Eye Area Evaluation

Hunter Eyes
www.payforchat.com favicon
Weekly Pick

Subscribe to ChatGPT Plus/Pro in 1 minute — no international credit card needed.

PayForChat
happyhorseai.ai favicon
Weekly Pick

Happy Horse AI Creates Videos with Motion and Storytelling

Happy Horse
promptbuilder.cc favicon
Weekly Pick

Generate, optimize, test, and manage AI prompts in one place. Turn an idea into a ready-to-use prompt in seconds.

Prompt Builder