Skip to content
jshacks.dev

Tag

refactoring

1 post

Flat illustration of an editor window full of code, with the JavaScript, TypeScript and npm logos.
Functions

Function Smells and How to Fix Them

Learn seven JavaScript function smells, from long parameter lists and boolean flags to hidden mutation, with a fix and output for each. Node.js 24.

7 min read