UNPKG

kod-temp

Version:

Workano Communications SDK

16 lines (15 loc) 349 B
/* eslint-disable */ // Can't use arrow function here due to `apply` export default function (func) { let ran = false; let memo; return function () { if (ran) return memo; ran = true; // @ts-ignore memo = func && func.apply(this, arguments); func = null; return memo; }; }