温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/http/IncomingMessage/every
点击访问原文链接

IncomingMessage.every method | Node.js http module | Bun

IncomingMessage.every method | Node.js http module | BunBuildDocsReferenceGuidesBlogDiscord/node:http/IncomingMessage/everyMevery

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:http/IncomingMessage/everyMevery

method

http.IncomingMessage.everyevery(fn: (data: any, options?: Abortable) => boolean | Promiseboolean>,options?: PickReadableOperatorOptions, 'signal' | 'concurrency'>): Promiseboolean>;This method is similar to Array.prototype.every and calls fn on each chunk in the stream to check if all awaited return values are truthy value for fn. Once an fn call on a chunk awaited return value is falsy, the stream is destroyed and the promise is fulfilled with false. If all of the fn calls on the chunks return a truthy value, the promise is fulfilled with true.

@param fna function to call on each chunk of the stream. Async or not.

@returnsa promise evaluating to true if fn returned a truthy value for every one of the chunks.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录