This suggests that Number, String, Boolean, Symbol, and Object are boxed types in TypeScript. I got in the bad habit of using Boolean instead of boolean, so I guess I am now straightened out. I guess there is a pointer to a Boolean as opposed to it just being a bit on the stack. Kinda lame.
No comments:
Post a Comment