Howβs it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK π¬π§
Education
10 plus years* active enterprise development experience and a Fine art degree π¨
Arrow function are really helpful for adopting βthisβ from their parent and in most of the use cases we donβt need βbind()β, But what if you want βthisβ to refer to a particular object then you need to use βbind()β. I hope you got my point.
Howβs it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK π¬π§
Education
10 plus years* active enterprise development experience and a Fine art degree π¨
To be honest, I only use bind for it's less well known second Param. I avoid using this and prefer pure functions, I have very few reasons to make this do anything, bimut that's just me βΊοΈ
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I haven't used bind very often since arrow functions
Arrow function are really helpful for adopting βthisβ from their parent and in most of the use cases we donβt need βbind()β, But what if you want βthisβ to refer to a particular object then you need to use βbind()β. I hope you got my point.
To be honest, I only use bind for it's less well known second Param. I avoid using this and prefer pure functions, I have very few reasons to make this do anything, bimut that's just me βΊοΈ