Showing 1 of 1 total issue
Function isValidUnderlyingStorage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static isValidUnderlyingStorage(storage) {
const hasValidGetItemFunction = typeof storage.getItem === 'function';
const hasValidSetItemFunction = typeof storage.setItem === 'function';
const hasValidRemoveItemFunction = typeof storage.removeItem === 'function';
const hasValidClearFunction = typeof storage.clear === 'function';