tsironis/lockr

View on GitHub
src/rm.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { getPrefixedKey } from './prefix';

export default function rm(key: string, options?: Options): void {
  const queryKey = getPrefixedKey(key, options);

  return localStorage.removeItem(queryKey);
}