qlik-oss/picasso.js

View on GitHub
plugins/q/src/formatter/memoize.js

Summary

Maintainability
A
1 hr
Test Coverage
A
97%

Showing 1 of 1 total issue

Function memoize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function memoize(func, opts = {}) {
const { size = 5000, multipleArguments = false, toKey = (arg) => arg } = opts;
let cache = Object.create(null);
let index = Object.create(null);
let counter = 0;
Severity: Minor
Found in plugins/q/src/formatter/memoize.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status