function sameOrder
sameOrder<T>(
left: ArrayLike<T>,
right: ArrayLike<T>,
): boolean

Whether two sequences hold the same values, in the same order. It stops at the first difference, so how long it takes says how much matched: never compare secrets with it.

Type Parameters

Parameters

left: ArrayLike<T>
right: ArrayLike<T>

Return Type

boolean

Usage

import { sameOrder } from "docs/utilities.ts";