MrShi
2025-04-23 c8b32b8bca79a116cfab70eb8c389907b664c9ca
1
2
3
4
5
6
7
8
'use strict';
module.exports = function (methodName, numArgs) {
  return numArgs === 1 ? function (object, arg) {
    return object[methodName](arg);
  } : function (object, arg1, arg2) {
    return object[methodName](arg1, arg2);
  };
};