結果 : js split array into two based on condition