結果 : how to use if condition in map function javascript