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

Commit 9b9f14e

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 #15156
1 parent b11a513 commit 9b9f14e

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)