polyfill-function-prototype-bind

Polyfill for Function.prototype.bind. (Source from developer.mozilla.org)

Usage no npm install needed!

<script type="module">
  import polyfillFunctionPrototypeBind from 'https://cdn.skypack.dev/polyfill-function-prototype-bind';
</script>

README

Function.prototype.bind polyfill

This is a polyfill for Function.prototype.bind. Useful if you are working with browsers that do not have the bind method.

Install and usage

To install:

npm install --save polyfill-function-prototype-bind

To use:

require('polyfill-function-prototype-bind');

Note: You will only need to require the package. And then you'll be able to use Function.prototype.bind.