結果 : assign if not null javascript