How I Clean Up JavaScript Dependencies

Unused dependencies are bad: they increase the size of your project, slow down your processes, require upgrades, and send incorrect messages to fellow developers about what’s important. Make your project better by periodically auditing your dependencies, and removing those that are unused. ...

August 3, 2020 · 2 min · Jake Worth

JavaScript Equality

A few weeks ago, I built an app with React.js and create-react-app that I call ‘JavaScript Equality’. View deployment here. This application demonstrates the JavaScript value-comparison operators == and ===. It’s inspired by the JavaScript Equality Table. ...

July 17, 2018 · 2 min · Jake Worth

Build URLs with Window Location

Want to build URLs with JavaScript? Try thewindow.location object. This came from a React.js project we’re working on. It uses ES6 template string interpolation, which isn’t necessary but definitely is nice: `${window.location.protocol}//${window.location.host}/posts/${this.props.postID}/edit` Which becomes: "https://secret-project.com/posts/42/edit"

September 23, 2015 · 1 min · Jake Worth