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.
Cipheriv.some method | Node.js crypto module | Bun BuildDocsReferenceGuidesBlogDiscord/node:crypto/Cipheriv/someMsome BuildDocsReferenceGuidesBlogDiscord /node:crypto/Cipheriv/someMsome crypto.Cipheriv.somesome(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 at least 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 →Cipheriv.some method | Node.js crypto module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method node:crypto.Cipheriv.some | Bun