|
|
|
|
|
by hombre_fatal
2724 days ago
|
|
One example would be a url router for a web server that turns the url variables into the handler's expected argument type and ignores requests that do not. router.get('/users/:id', (id: UUID) => ...)
router.get('/products/:id', (id: Int) => ...)
|
|
You can do function composition that is nearly as simple and far more flexible in general with JS