19 lines
1.0 KiB
TypeScript
19 lines
1.0 KiB
TypeScript
/**
|
|
* Compares the content of two arrays-like objects for equality.
|
|
*
|
|
* Equality is defined as having equal length and element values, where element equality means `===` returning `true`.
|
|
*
|
|
* This allows you to compare the content of a Buffer, Uint8Array or number[], ignoring the specific type.
|
|
* As a consequence, this returns different results than Jasmine's `toEqual`, which ensures elements have the same type.
|
|
*/
|
|
export declare function arrayContentEquals<T extends string | number | boolean>(a: ArrayLike<T>, b: ArrayLike<T>): boolean;
|
|
/**
|
|
* Checks if `a` starts with the contents of `b`.
|
|
*
|
|
* This requires equality of the element values, where element equality means `===` returning `true`.
|
|
*
|
|
* This allows you to compare the content of a Buffer, Uint8Array or number[], ignoring the specific type.
|
|
* As a consequence, this returns different results than Jasmine's `toEqual`, which ensures elements have the same type.
|
|
*/
|
|
export declare function arrayContentStartsWith<T extends string | number | boolean>(a: ArrayLike<T>, b: ArrayLike<T>): boolean;
|