You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
508 B

const { exports: moduleScoped } = module;
function topFn(a, b = false) {
const l1 = a;
let t = typeof l1;
var v = t.length;
debugger;
return b || t || v || moduleScoped;
}
class Ctor {
constructor(options) {
this.options = options;
}
m() {
const mLocal = this.options;
topFn(this);
return mLocal;
}
}
(function () {
const theOptions = { x: 42 };
const arr = [theOptions];
arr.forEach(options => {
const obj = new Ctor(options);
return obj.m();
});
}());