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
const Thinky = require('thinky')();
const Type = Thinky.type;
// create the model for messages
const Message = Thinky.createModel('Message', {
username: Type.string(),
message: Type.string()
});
function exec(...rest) {
return rest[0];
}
function exec(/* no arguments */) {
var arg = arguments[1];
}
function exec() {
debugger;
}
function exec() {
var obj = {};
for (key in obj) {}
}
function exec() {
var args = arguments;
return function() {
return args;
}
}
function exec() {
var nested = function() {};
nested();
}
function exec() {
var obj = {
get prop() {
return 1;
}
};
}
function exec() {
var obj = {
set prop(value) {
}
};
}
function exec(arg0) {
var foo = arguments[0];
arg0 = 'foo';
}