結果 : javascript filter with if statement