Skip to content

Commit 8d5ee7d

Browse files
calamariconetman92
authored andcommitted
docs(numberFilter): update to match handling of null and undefined
This changed in 2ae10f6, where null and undefined are passed through. Closes angular#11963
1 parent c42c226 commit 8d5ee7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/filter/filters.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ function currencyFilter($locale) {
8080
* @description
8181
* Formats a number as text.
8282
*
83+
* If the input is null or undefined, it will just be returned.
84+
* If the input is infinite (Infinity/-Infinity) the Infinity symbol '∞' is returned.
8385
* If the input is not a number an empty string is returned.
8486
*
85-
* If the input is an infinite (Infinity/-Infinity) the Infinity symbol '∞' is returned.
8687
*
8788
* @param {number|string} number Number to format.
8889
* @param {(number|string)=} fractionSize Number of decimal places to round the number to.

0 commit comments

Comments
 (0)