UNPKG

sly-utils

Version:

sly-utils is a modular and efficient JavaScript utility library designed to simplify complex tasks.

20 lines (19 loc) 569 B
/** * Compares two arrays to determine if they are the same. * Two arrays are considered the same if they have the same length * and their corresponding elements are equal. * * @param {Array} arr1 - The first array to compare. * @param {Array} arr2 - The second array to compare. * @returns {boolean} - Returns true if the arrays are the same, false otherwise. * * @example * * const arr1 = [1, 2, 3]; * const arr2 = [3, 2, 1]; * * areSameArrays(arr1, arr2); * // => true * */ export declare const areSameArrays: (arr1: any[], arr2: any[]) => boolean;