UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

13 lines 414 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stringExpression = stringExpression; /** * Runs string expression and return result * @param {string} expression - expression to run * @returns {T} result of expression * @template T */ function stringExpression(expression) { return new Function('return ' + expression)(); } //# sourceMappingURL=string-expression.js.map