swc/crates/swc_ecma_minifier/tests/fixture/issues/6636/output.js

5 lines
127 B
JavaScript

export function memo(fn, opts) {
let result;
return ()=>(result = fn(...newDeps), opts?.onChange?.(result), result);
}