MES手机端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
329 B

  1. 'use strict';
  2. var fails = require('../internals/fails');
  3. module.exports = function (METHOD_NAME, argument) {
  4. var method = [][METHOD_NAME];
  5. return !!method && fails(function () {
  6. // eslint-disable-next-line no-useless-call -- required for testing
  7. method.call(null, argument || function () { return 1; }, 1);
  8. });
  9. };