結果 : check type of object in javascript