IIFE

Created Diff never expires
10 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
10 lines
11 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
10 lines
let isCuteMixin = function(obj) {
let funModule = (() => {
obj.isCute = function() {
return {
return true;
isCuteMixin: obj => {
};
obj.isCute = () => true;
};
},
let singMixin = function(obj) {
singMixin: obj => {
obj.sing = function() {
obj.sing = () => console.log("Singing to an awesome tune");
console.log("Singing to an awesome tune");
}
};
}
};
})();