Follow

poor man’s argument types... 💸

```
const doStuff = ({
id = String(id),
category = Number(category),
awesome = Boolean(awesome),
}) => ( /* function body */ );
```

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!