es.function.bind.js 391 B

1234567891011
  1. 'use strict';
  2. // TODO: Remove from `core-js@4`
  3. var $ = require('../internals/export');
  4. var bind = require('../internals/function-bind');
  5. // `Function.prototype.bind` method
  6. // https://tc39.es/ecma262/#sec-function.prototype.bind
  7. // eslint-disable-next-line es/no-function-prototype-bind -- detection
  8. $({ target: 'Function', proto: true, forced: Function.bind !== bind }, {
  9. bind: bind
  10. });