xkcd.js
function _get(d, k, def) {
        if (typeof d === "undefined") return def;
        if (typeof d[k] === "undefined") return def;
        return d[k];
    }
function _get(d, k, def) {
        if (typeof d === "undefined") return def;
        if (typeof d[k] === "undefined") return def;
        return d[k];
    }
function _get ( d , k , def ) { if ( typeof d === "undefined" ) return def ; if ( typeof d [ k ] === "undefined" ) return def ; return d [ k ] ; }
Get a value from an object or return a default if that doesn't work.
Get a value from an object or return a default if that doesn t work .