結果 : javascript check if method exists in object