1 | const staticMethods = require('./static-methods');
|
2 |
|
3 | Object.keys(staticMethods).forEach((methodName) => {
|
4 | const instaceMethodName = methodName.charAt(0).toUpperCase() + methodName.slice(1);
|
5 | exports[`async${instaceMethodName}`] = async function (...args) {
|
6 | return staticMethods[methodName](this, ...args);
|
7 | };
|
8 | });
|