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

Commit 3c6b833

Browse files
committed
Added in limitTo number support
1 parent 5b070e8 commit 3c6b833

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ng/filter/limitTo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
*/
7373
function limitToFilter(){
7474
return function(input, limit) {
75+
if (typeof input == "number") input = input.toString();
7576
if (!isArray(input) && !isString(input)) return input;
7677

7778
if (Math.abs(Number(limit)) === Infinity) {

0 commit comments

Comments
 (0)