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

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

Inflate.some method | Node.js zlib module | BunBuildDocsReferenceGuidesBlogDiscord/node:zlib/Inflate/someMsome

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:zlib/Inflate/someMsome

method

zlib.Inflate.somesome(fn: (data: any, options?: Abortable) => boolean | Promiseboolean>,options?: PickReadableOperatorOptions, 'signal' | 'concurrency'>): Promiseboolean>;

This method is similar to Array.prototype.some and calls fn on each chunk in the stream until the awaited return value is true (or any truthy value). Once an fn call on a chunk awaited return value is truthy, the stream is destroyed and the promise is fulfilled with true. If none of the fn calls on the chunks return a truthy value, the promise is fulfilled with false.

@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 at least 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.some method | Node.js zlib module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

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