← Back to release summary

Web Storage: Methods are now enumerable

Category
Offline / Storage
Type
New or changed feature
Status
Enabled by default (Chrome 63)
Intent stage
None

Summary

The methods belonging to the Storage IDL interface (available via sessionStorage and localStorage), such as getItem(), clear() and removeItem() are now enumerable as mandated by the HTML spec. They are not returned by Object.keys(), but do appear in e.g. for-in loops.

Standards & signals

View on chromestatus.com