Skip to content

Instantly share code, notes, and snippets.

View avinashsivaraman's full-sized avatar
👨‍💻
Exploring

avinash avinashsivaraman

👨‍💻
Exploring
View GitHub Profile
// finished version of https://youtu.be/yIcve5wIuAg
function add(...args) {
function curriedAdd(...args2) {
return add(...args, ...args2)
}
curriedAdd.value = args.reduce((total, current) => total + current)
return curriedAdd
}
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master