Finds array elements satisfying a test condition.