Once

EasyAmazon

Prompt

Implement a function once that takes a callback function as an argument and returns a new function. The returned function should invoke the callback only on the first call. All subsequent calls should return the result of the first invocation without calling the callback again.