MrShi
2025-09-05 2f0f13c472e3cb663c3f6cbb417cffe760a497f0
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);
  };
};