Skip to content

Instantly share code, notes, and snippets.

View mnxoid's full-sized avatar

Mykhaylo Dudyak mnxoid

View GitHub Profile
@mnxoid
mnxoid / EJs8-9.js
Last active October 30, 2016 16:07 — forked from anonymous/EJs8-9.js
Placeholder + autoCurrying | created by mnxoid - https://repl.it/EJs8/9
var _ = "Placeholder_secret_constant";
var placeholder_support = f =>
(...outer_args)=>{
if(outer_args.filter(x=>x==_).length === 0) {
if(outer_args.length<f.length){
while(outer_args.length<f.length)outer_args.push(_);
return placeholder_support(f)(...outer_args);
} else {
return f(...outer_args);
}