consys
Version:
consys is a flexible tool to evaluate models using generic and readable constraints.
17 lines (16 loc) • 386 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Helper class to generate a javascript function.
*/
class FunctionGenerator {
/**
* Generates a javascript function from a string.
*
* @param fn function string
*/
static generateFromString(fn) {
return new Function(fn);
}
}
exports.default = FunctionGenerator;