author | handle | source | date |
---|---|---|---|
Matt Pocock |
@mattpocockuk |
2022-11-11 12:37:52 UTC |
Matt Pocock
🔥 TypeScript Tip 🔥
If you're feeling like a function you're writing is lacking flexibility, try PASSING IT A FUNCTION.
This is called 'Inversion of control', and it lets you write dainty little API's which give full control over to the users of your function. pic.twitter.com/OQnuIMkWV4