/** * @tsplus pipeable-operator ImmutableArray == * @tsplus static ImmutableArray.Aspects equals * @tsplus pipeable ImmutableArray equals */ export function equals(that: ImmutableArray): (self: ImmutableArray) => boolean export function equals(that: ImmutableArray): (self: ImmutableArray) => boolean export function equals(that: ImmutableArray) { return (self: ImmutableArray): boolean => self.array.length === that.array.length && self.array.every((v, i) => Equals.equals(v, that.array[i])) }