UNPKG

@web-alchemy/fonttools

Version:

This is the Node.js adapter of [python font tools](https://github.com/fonttools/fonttools) via [Pyodide](https://pyodide.org) without having to install python and its dependencies.

19 lines (15 loc) 264 B
function once(/**@type {Function}*/ func) { let isCalled = false let result return function() { if (isCalled) { return result } result = func.apply(this, arguments) isCalled = true return result } } module.exports = { once }