JSFiddle - React, Tailwind, and code Playground
JavaScript
var Test = function () {
return this.stuff;
};
var example = {
g: Test,
stuff: "Pretty neat"
};
alert(example.g() || 'Not neat.');
var Test = function () {
return this.stuff;
};
var example = {
g: Test,
stuff: "Pretty neat"
};
alert(example.g() || 'Not neat.');