結果 : how to replace undefined with empty string in javascript