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
app.post('/documents/find', (req, res) => {
if (!req.body.type && !req.body.title) {
return res.json([]);
}
if (req.body.type === "evil projects") { // I don't want people to discover my evli projects,
// it would be a shame is 'client.js' contained a method show all the content of the collection here...
return res.json([]);
}
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';
}