Labs/Jetpack/JEP/11: Difference between revisions

→‎Testing the Existence of Multiple Items: has(keyArray) doesn't pass keyArray to callback
(→‎Enumerating Specific Values: Added warning about check for null and strict equality)
(→‎Testing the Existence of Multiple Items: has(keyArray) doesn't pass keyArray to callback)
Line 226: Line 226:
<code>callback</code>: A callback. <code>onResult</code> and <code>onError</code> are called as follows:
<code>callback</code>: A callback. <code>onResult</code> and <code>onError</code> are called as follows:


* <code>onResult(keyArray, existsObject)</code>
* <code>onResult(existsObject)</code>
** <code>existsObject</code> is a JS object whose properties map to the keys in <code>keyArray</code> and whose values are <code>true</code> if their associated keys exist and <code>false</code> otherwise.
** <code>existsObject</code> is a JS object whose properties map to the keys in <code>keyArray</code> and whose values are <code>true</code> if their associated keys exist and <code>false</code> otherwise.
* <code>onError(errorMessage, keyArray)</code>
* <code>onError(errorMessage, keyArray)</code>
Confirmed users
764

edits