4 ms·
function foo(value) { value = value || ''; var args = [].slice.call(arguments); args.unshift(this); return args; } foo(null);
by wereHamster 10y ago
function foo(value) {
value = value || '';
var args = [].slice.call(arguments);
args.unshift(this);
return args;
}
foo(null);
export {};
If your module does nothing but side-effects during load time, screw you.
- jdd 10y agoThat's generally and edge case and totally supported under the proposal by being explicit about with respect to `export`. I think being explicit about the intent of your code is a good thing after all.