Checks if two arrays are the same.
Two arrays are considered the same if they have the same length and their elements are strictly equal at each index.
This function acts as a type guard, narrowing the type of b to be the same as a if it returns true.
Checks if two arrays are the same. Two arrays are considered the same if they have the same length and their elements are strictly equal at each index. This function acts as a type guard, narrowing the type of
bto be the same asaif it returnstrue.