Filters Flashcards

1
Q

filter

A

Selects a subset of items from array and returns it as a new array.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

currency

A

Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default symbol for current locale is used.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

number

A

Formats a number as text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

date

A

Formats date to a string based on the requested format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

json

A

Allows you to convert a JavaScript object into JSON string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

lowercase

A

Converts string to lowercase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

uppercase

A

Converts string to uppercase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

limitTo

A

Creates a new array or string containing only a specified number of elements. The elements are taken from either the beginning or the end of the source array, string or number, as specified by the value and sign (positive or negative) of limit. If a number is used as input, it is converted to a string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

orderBy

A

Orders a specified array by the expression predicate. It is ordered alphabetically for strings and numerically for numbers. Note: if you notice numbers are not being sorted correctly, make sure they are actually being saved as numbers and not strings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly