The object might be any or unknown . In JavaScript, you would check for properties like that: if(typeof obj === 'object' && 'prop' in obj) {
確定! 回上一頁