Message from JavaScript talks

August 2017

— Runs infinitely

— 

Anyone mind giving my unit tests a quick little review? Any comments are welcome: https://github.com/Floofies/Differentia.js/blob/master/spec/Spec.js

— Worth it though, since you have one variable less amirite?

— Keke

— Is this a good way to make something work in both node and browser?

if (typeof module === "undefined") {

  var module = { exports: null };

}

var myNamespace = module.exports = (function () {

    ...

Message permanent page

— 

(function (global) {
// Module code
global.myThingy = ...
})(typeof module !== undefined
? module.exports
: window)

Message permanent page

— Oh hey haha, thank you

— I wound up doing something similar

— Hey i'm new here needed some help with thing

— So i have this datastructure

var list = { value: 0,
rest: { value: 1,
rest: null
}
};

— And i want to add new elements at end of this list

— Within rest?