Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f1cc58c

Browse files
mgilsongkalpak
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 #15156
1 parent e1e2fe1 commit f1cc58c

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

0 commit comments

Comments
 (0)