parser.coffee 242 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 exports.load = (received, defaults, onto={}) -> for k, v of defaults onto[k] = received[k] ? v onto exports.overwrite = (received, defaults, onto={}) -> for k, v of received if defaults[k] != undefined onto[k] = v onto