by bsimpson · 13y ago · 0 comments
Glad to see some of the good bits making their way back in. The number of times I've had to do
function(firstParam, secondParam, thirdParam) {
if (firstParam.hasOwnProperty('firstParam') {
var argumentDict = firstParam;
firstParam = argumentDict['firstParam'];
secondParam = argumentDict['secondParam'];
thirdParam = argumentDict['thirdParam'];
}
firstParam = firstParam || "default value";
...
is sickening.1) https://mail.mozilla.org/pipermail/es-discuss/2008-August/00...
(Disclaimer: I work for MS).