_.compareArrays

Checks if the defined arrays are equal

_.compareArrays(arrays)

Parameters:

  • arrays [arrays or array of arrays]: the array to be compared

Example:

_.compareArrays([1,2,3],[1,2,3])
// => true
_.compareArrays([2,3],[1,2,3])
// => false

Last updated