UNPKG

step-sequence-generator

Version:

A step sequence generator for figure skating programs

11 lines (10 loc) 419 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFuncResult = getFuncResult; // eslint-disable-next-line @typescript-eslint/no-explicit-any function getFuncResult(instance, funcName, ...args) { const method = instance[funcName]; if (typeof method !== 'function') throw new Error(`${String(funcName)} is not a function`); return method.apply(instance, args); }