How to Check if a Key exists in Local Storage using JavaScript

How to Check if a Key exists in Local Storage using JavaScript