結果 : if object is not undefined javascript