UNPKG

redos-detector

Version:

A CLI and library which tests helps score how vulnerable a regex pattern is to ReDoS attacks. Supported in the browser, Node and Deno.

7 lines (6 loc) 270 B
export declare function last<T>(input: readonly T[]): T | null; export declare function areArraysEqual<T>(a: readonly T[], b: readonly T[]): boolean; export declare function dropCommon<T>(a: readonly T[], b: readonly T[]): { a: readonly T[]; b: readonly T[]; };