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.
Inflate.every method | Node.js zlib module | Bun BuildDocsReferenceGuidesBlogDiscord/node:zlib/Inflate/everyMevery BuildDocsReferenceGuidesBlogDiscord /node:zlib/Inflate/everyMevery zlib.Inflate.everyevery(fn: (data: any, options?: Abortable) => boolean | Promiseboolean>,options?: PickReadableOperatorOptions, 'signal' | 'concurrency'>): Promiseboolean>; @param fn @returns
Search the reference...
/
method
a function to call on each chunk of the stream. Async or not.
a promise evaluating to true if fn returned a truthy value for every one of the chunks.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked 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