結果 : replace undefined with empty string javascript