Compare two arrays of equal length, does not deep compare objects in arrays
Example:
let equal: number = compareArray([1, 2, 3], [1, 2, 3]); // 0 let greater: number = compareArray(["b"], ["a"]); // 1 let less: number = compareArray([new Date("1/1/2017")], [new Date()]); // -1
Private method used in compareArray.
Generated using TypeDoc
Compare two arrays of equal length, does not deep compare objects in arrays
Example:
let equal: number = compareArray([1, 2, 3], [1, 2, 3]); // 0 let greater: number = compareArray(["b"], ["a"]); // 1 let less: number = compareArray([new Date("1/1/2017")], [new Date()]); // -1