Skip to content

Instantly share code, notes, and snippets.

View vdeturckheim's full-sized avatar
😇
Living the JS life

Vladimir de Turckheim vdeturckheim

😇
Living the JS life
View GitHub Profile
function exec() {
Array.prototype.slice.call(arguments);
}
function exec(arg0) {
var foo = arguments[0];
arg0 = 'foo';
}
function exec() {
var obj = {
set prop(value) {
}
};
}
function exec() {
var obj = {
get prop() {
return 1;
}
};
}
function exec() {
var nested = function() {};
nested();
}
function exec() {
var args = arguments;
return function() {
return args;
}
}
function exec() {
var obj = {};
for (key in obj) {}
}
function exec() {
debugger;
}
function exec(/* no arguments */) {
var arg = arguments[1];
}
function exec(...rest) {
return rest[0];
}