How do I check if a particular key exists in a JavaScript object or array?
If a key doesn't exist, and I try to access it, will it return false? Or throw an error?
转载于:https://stackoverflow.com/questions/1098040/checking-if-a-key-exists-in-a-javascript-object