Skip to content

Commit a502b71

Browse files
shannonboothzcorpan
authored andcommitted
Editorial: Clarify return value of Storage property accessor
1 parent 2ff023f commit a502b71

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137910,10 +137910,13 @@ interface <dfn interface>Storage</dfn> {
137910137910
equal to the number of key/value pairs.</p></dd>
137911137911

137912137912
<dt><code data-x=""><var>value</var> = <var>storage</var>.<span subdfn data-x="dom-Storage-getItem">getItem</span> (<var>key</var>)</code></dt>
137913-
<dt><code data-x=""><var>value</var> = <var>storage</var>[<var>key</var>]</code></dt>
137914137913
<dd><p>Returns the current value associated with the given <var>key</var>, or null if the given
137915137914
<var>key</var> does not exist.</p></dd>
137916137915

137916+
<dt><code data-x=""><var>value</var> = <var>storage</var>[<var>key</var>]</code></dt>
137917+
<dd><p>Returns the current value associated with the given <var>key</var>, or undefined if the
137918+
given <var>key</var> does not exist.</p></dd>
137919+
137917137920
<dt><code data-x=""><var>storage</var>.<span subdfn data-x="dom-Storage-setItem">setItem</span> (<var>key</var>, <var>value</var>)</code></dt>
137918137921
<dt><code data-x=""><var>storage</var>[<var>key</var>] = <var>value</var></code></dt>
137919137922
<dd>

0 commit comments

Comments
 (0)