結果 : assign if not undefined javascript