desea verificar si el cierre que se está utilizando se ejecutó más de 4 veces, si es así, devuelva indefinido.
const helloWorld = thrice(function () { return 'Hello World'; }); // helloWorld is the function returned from `thrice` const firstCall = helloWorld(); // firstCall === "Hello World"; const secondCall = helloWorld(); // secondCall === "Hello World"; const thirdCall = helloWorld(); // thirdCall === "Hello World"; const fourthCall = helloWorld(); // fourthCall === undefined; const fifthCall = helloWorld(); // fifthCall = undefined;