mediawiki.api: Add unit tests for pipe-joining non-string values
[lhc/web/wiklou.git] / resources / src / mediawiki / api.js
index 5abd2d4..f3d48e6 100644 (file)
                /**
                 * Massage parameters from the nice format we accept into a format suitable for the API.
                 *
+                * NOTE: A value of undefined/null in an array will be represented by Array#join()
+                * as the empty string. Should we filter silently? Warn? Leave as-is?
+                *
                 * @private
                 * @param {Object} parameters (modified in-place)
                 * @param {boolean} useUS Whether to use U+001F when joining multi-valued parameters.