The clear() method must atomically cause the list associated with the object to be emptied of all key/value pairs, if there are any. If there are none, then the method must do nothing.
Is this status-by-design or an oversight? Furthermore, would you accept a PR to add clear method?
https://www.w3.org/TR/webstorage/#storage-0
Is this status-by-design or an oversight? Furthermore, would you accept a PR to add clear method?