/* eslint-disable */// Can't use arrow function here due to `apply`exportdefaultfunction (func) {
let ran = false;
let memo;
returnfunction () {
if (ran)
return memo;
ran = true;
// @ts-ignore
memo = func && func.apply(this, arguments);
func = null;
return memo;
};
}