_strict-method.js 269 B

12345678910
  1. 'use strict';
  2. var fails = require('./_fails');
  3. module.exports = function (method, arg) {
  4. return !!method && fails(function () {
  5. // eslint-disable-next-line no-useless-call
  6. arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);
  7. });
  8. };