Posted in Code, Javascript on Sep 25, 2018
Functions are fun. In most languages, you can pass them as a variable. You can declare them anonymously (lambdas), you can close them over variables (closures). In some languages, you can even execute them on a subset of parameters, and get back another function that takes the missing parameters. This is called currying. In this post, I explore how to implement a form of position-independent currying in Javascript.
Posted in Code, Javascript on Feb 11, 2016
How to fix the npm "extraneous" package problem