Skip to content

Commit f9952eb

Browse files
mgilsonpetebacondarwin
authored andcommitted
docs(angular.toJson): add missing param type
Reference: [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). Closes angular#15156
1 parent dc084e1 commit f9952eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ function toJsonReplacer(key, value) {
12241224
* Serializes input into a JSON-formatted string. Properties with leading $$ characters will be
12251225
* stripped since angular uses this notation internally.
12261226
*
1227-
* @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.
1227+
* @param {Object|Array|Date|string|number|boolean} obj Input to be serialized into JSON.
12281228
* @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.
12291229
* If set to an integer, the JSON output will contain that many spaces per indentation.
12301230
* @returns {string|undefined} JSON-ified string representing `obj`.

0 commit comments

Comments
 (0)