MrShi
2025-08-21 63e62f860958716da9ebb34ce07c8d616b305b8e
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);
  };
};