Re:How JavaScript Works: deep dive into call, apply, and bind
by monus21 on Friday July 09, 2021 @06:25PM
(#27789205)
My one annoyance with these is that they aren't supported in Typescript i.e no return types.
[ Parent
| on HN ]
Re:How JavaScript Works: deep dive into call, apply, and bind
by ash_gti on Friday July 09, 2021 @07:15PM
(#27789571)
If you enable strict (https://www.typescriptlang.org/tsconfig#strict) or use the `strictBindCallApply` flag (https://www.typescriptlang.org/tsconfig#strictBindCallApply) it should check the types on call, bind and apply.