I would like to compare 2 arrays of numbers by checking if all numbers in the second array are greater than each number in the first array.
Example:
const arr1 = [1,2,3,4]
const arr2 = [2,3,4,5]
// return true
//-----------------
const arr1 = [3,3,3,3]
const arr2 = [2,3,4,5]
// return false
I’m not finding a solution for this. Somebody can help?