Message from JavaScript discussions

December 2017

— Hmmm, should call it bindAssign :D

— 

stdLib.bindAssign = function (thisArg, toObj, ...objects) {
for (var obj in objects) {
for (var prop in obj) {
if ((typeof obj[prop]) === "function") {
toObj[prop] = obj[prop].bind(thisArg);
} else {
toObj[prop] = obj[prop];
}
};
}
return toObj;
};

better

— 

this.sysCallProcedures = this.stdLib.bindAssign(this, {}, this.prototype.SCP);

— Nooooo capitalize classes please

— Please how do you put your codes in this format?

— Triple backticks: `

— Find it on your keyboard

— `=<bt>

<bt><bt><bt>function () {
console.log('Hello World!');
}<bt><bt><bt>

function () {
console.log('Hello World!');
}

Message permanent page

— ``` function () {
console.log("Hello World");
} ```

— 

 function () {
console.log("Hello World");
}

— Wow, how did you do that?

— Are you using a non-official client?