UNPKG

321 BJavaScriptView Raw
1const staticMethods = require('./static-methods');
2
3Object.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});