loverajoel / jstips

This is about useful JS tips!
http://jstips.co
GNU General Public License v3.0
12.5k stars 803 forks source link

understanding JS call apply and bind and how they are different #403

Closed sagarmunjal closed 2 years ago

sagarmunjal commented 7 years ago

Call apply and bind

@munjalsagar

zenopopovici commented 7 years ago

There are a lot of language issues ... we can't merge it like this.

sagarmunjal commented 7 years ago

What language issues? Could u elaborate? On Thu, 6 Apr 2017 at 6:58 PM, Zeno Popovici notifications@github.com wrote:

There are a lot of language issues ... we can't merge it like this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/loverajoel/jstips/pull/403#issuecomment-292174469, or mute the thread https://github.com/notifications/unsubscribe-auth/AITj-ueHR91ONEdCymRKz6BAczx0IaFTks5rtOiSgaJpZM4Mthni .

zenopopovici commented 7 years ago

There are a lot more. I can't re-write the tip for you. Please get someone to spellcheck it.

sagarmunjal commented 7 years ago

I'll make note of the spell check and language and rectify.

Is there anything amiss in the logic explained how apply call and bind work?

On Thu, 6 Apr 2017 at 7:03 PM, Zeno Popovici notifications@github.com wrote:

There are a lot more. I can't re-write the tip for you. Please get someone to spellcheck it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/loverajoel/jstips/pull/403#issuecomment-292175810, or mute the thread https://github.com/notifications/unsubscribe-auth/AITj-p_8iLWGbDxspwC0dSyQixT9QYZzks5rtOm-gaJpZM4Mthni .

zenopopovici commented 7 years ago

That's for the other members to weigh in. I personally think in can be improved. See: https://alexperry.io/personal/2016/04/03/How-to-use-apply-bind-and-call.html

zenopopovici commented 2 years ago

Quality issues