MrShi
2025-07-09 de39945b61c0ae3ad0acc39e889514b6c2dddda6
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);
  };
};