Skip to content

Instantly share code, notes, and snippets.

View linshiyan1992's full-sized avatar
💭
Busy learning web development now

shiyan lim linshiyan1992

💭
Busy learning web development now
View GitHub Profile
@linshiyan1992
linshiyan1992 / master-javascript-interview.md
Created September 6, 2021 03:28 — forked from Geoff-Ford/master-javascript-interview.md
Eric Elliott's Master the JavaScript Interview Series
@linshiyan1992
linshiyan1992 / curry.js
Last active September 4, 2021 15:42
Tiny, recursive autocurry
const curry = (
f, arr = []
) => (...args) => (
a => a.length === f.length ?
f(...a) :
curry(f, a)
)([...arr, ...args]);
add3(1, 2, 3); // 6