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

Inflate.every method | Node.js zlib module | Bun

Inflate.every method | Node.js zlib module | BunBuildDocsReferenceGuidesBlogDiscord/node:zlib/Inflate/everyMevery

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:zlib/Inflate/everyMevery

method

zlib.Inflate.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 fn

a function to call on each chunk of the stream. Async or not.

@returns

a 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.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Inflate.every method | Node.js zlib module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for method node:zlib.Inflate.every | Bun