DEV Community

Discussion on: Creating your own bind() (Polyfill of bind)

Collapse
 
hasnaindev profile image
Muhammad Hasnain

Great article, although, I don't think there is any need for this. It is 2021 and support for bind came between 2009 and 2011. Almost all operating systems for all types of devices comes with advanced built-in browsers that supports at least ES6 and almost all of them install and use modern browsers.

Collapse
 
uddeshjain profile image
Uddesh

Totally agree, But first of all it helps us to understand how bind() works behind the scene. Apart from that i was asked to implement polyfill of bind() in few interviews as well.

Collapse
 
davidmatossalvador profile image
David Matos salvador

this example is to understand how the black box works