//#region src/Array/isShallowEqual.d.ts /** * # isShallowEqual * * ```ts * function Array.isShallowEqual( * target: readonly T[], * source: readonly U[], * ): target is readonly U[] * ``` * * Returns `true` if `target` and `source` have the same length and their elements are equal using shallow comparison, otherwise returns `false`. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.isShallowEqual([1, 2, 3], [1, 2, 3]); // true * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([1, 2, 3], Array.isShallowEqual([1, 2, 3])); // true * ``` * */ declare const isShallowEqual: { (source: readonly U[]): (target: T[]) => target is U[]; (source: readonly U[]): (target: readonly T[]) => target is readonly U[]; (target: T[], source: readonly U[]): target is U[]; (target: readonly T[], source: readonly U[]): target is readonly U[]; }; //#endregion export { isShallowEqual };