Javascript Check If One Array Interpolation