Default parameters in JavaScript, and defaults for defaults? This sample repo accompanies the blog post. Click here to run the samples in CodeSandbox