Javascript Array Any Function In Matlab