結果 : javascript split array in two based on condition