checking if values in an array are equal code example
Example 1: check if numpy arrays are equal
(A==B).all()
Example 2: check array values equal js
[1,1,1,1].every( (val, i, arr) => val === arr[0] ) // true
(A==B).all()
[1,1,1,1].every( (val, i, arr) => val === arr[0] ) // true