UNPKG

jsmodern

Version:

An extension to existing JavaScript, influenced by other great languages such as Rust, Dart, Java, Golang, etc.

12 lines 325 B
import type { PrototypeStruct } from '../index.js'; declare type AnyPredicate<T> = (value: T) => boolean; interface Any<T> { any(predicate: AnyPredicate<T>): boolean; } export declare const any: PrototypeStruct; declare global { interface Array<T> extends Any<T> { } } export {}; //# sourceMappingURL=any.d.ts.map