We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 900b3a4 commit 66650bfCopy full SHA for 66650bf
src/Angular.js
@@ -979,8 +979,8 @@ function toJsonReplacer(key, value) {
979
* stripped since angular uses this notation internally.
980
*
981
* @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.
982
- * @param {boolean|number=} pretty If set to true, the JSON output will contain newlines and whitespace.
983
- * If set to an integer, the JSON output will contain that many spaces per indentation (the default is 2).
+ * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.
+ * If set to an integer, the JSON output will contain that many spaces per indentation.
984
* @returns {string|undefined} JSON-ified string representing `obj`.
985
*/
986
function toJson(obj, pretty) {
0 commit comments