Checks if the elements of an array are equal to a number or the elements of another array, and then returns an array with the elements that pass the check.
Parameters
arr: number[]
The array
arrORnum: number|number[]
The array or number
Returns number[]
Example
constresult = Chalkboard.stat.eq([1, 2, 2, 3], 2); // Returns the values equal to 2
Checks if the elements of an array are equal to a number or the elements of another array, and then returns an array with the elements that pass the check.