Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
docs: add non-existent key example
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Jan 25, 2020
1 parent 23cfc40 commit ca70ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { CookieStorage } from 'cookie-storage';
const cookieStorage = new CookieStorage();

cookieStorage.length === 0;
cookieStorage.getItem('key') === null;

cookieStorage.setItem('key', 'value');
cookieStorage.length === 1;
Expand Down

0 comments on commit ca70ea6

Please sign in to comment.