Frontend Developer working with Angular for 10+ years. I love solving problems and building cool stuff. I sweat the details because…I love the details.
Location
Encinitas, CA (San Diego area)
Education
Bachelor of Electrical Engineering, Villanova University, Villanova, PA
On 6th example i would rather use it in that way
type === 'heigth' ? height() : width()
it is more clear for me and for other i guess, and can be passed different arguments to functions
I agree. It also makes it easier to do a global search for all places where those functions are invoked.