Skip to content

Commit

Permalink
Merge pull request #852 from gmeligio/util-unnamed-function
Browse files Browse the repository at this point in the history
style(utils): fix warning Unexpected unnamed function
  • Loading branch information
rumpl committed Jan 11, 2024
2 parents 001684e + 981a2b8 commit bef901f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function evaluate(code) {
function memoize(func, n) {
const cache = new Map();

return function (...args) {
return (...args) => {
const key = JSON.stringify(args);

if (cache.has(key)) {
Expand Down

0 comments on commit bef901f

Please sign in to comment.