Skip to main content
Version: Next

isCachedFunction

isCachedFunction(fn): boolean

Checks if a function is wrapped with cache functionality

if (isCachedFunction(myFunction)) {
console.log('Function is cached');
}
ParameterTypeOptionalDescription
fnGenericFunctionFunction to check