esnext.function.un-this.js 386 B

1234567891011
  1. var $ = require('../internals/export');
  2. var uncurryThis = require('../internals/function-uncurry-this');
  3. var aCallable = require('../internals/a-callable');
  4. // `Function.prototype.unThis` method
  5. // https://github.com/js-choi/proposal-function-un-this
  6. $({ target: 'Function', proto: true, forced: true }, {
  7. unThis: function unThis() {
  8. return uncurryThis(aCallable(this));
  9. }
  10. });