If object does not have key, add it.
Este script não deve ser instalado diretamente. É uma biblioteca destinada a ser incluída por outros scripts através da diretiva de metadados // @require https://update.greasyfork.org/scripts/427473/937466/object_setDefault.js
Added method setDefault to object prototype.
function setDefault (key, value)
If object does not have key, add it with value value
key (string, required)
key to check
value (any, optional, default = undefined)
value for key if it's not present