Namespace: formatters
Methods
-
booleantoenabled(value) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
string
-
centsToDollars(amount) → {string}
-
Parameters:
| Name |
Type |
Description |
amount |
|
|
- Source:
Returns:
-
Type
-
string
-
equals(value, args) → {boolean}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
args |
|
|
- Source:
Returns:
-
Type
-
boolean
-
existsOr(value, args) → {*}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
args |
|
|
- Source:
Returns:
-
Type
-
*
-
includes() → {boolean}
-
- Source:
Returns:
-
Type
-
boolean
-
joinWithComma(value) → {*|string|join|join|join}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
*
|
string
|
join
|
join
|
join
-
jsonAsString(value) → {*}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
*
-
limit(value, args) → {Array|string|*|Blob|slice|slice}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
args |
|
|
- Source:
Returns:
-
Type
-
Array
|
string
|
*
|
Blob
|
slice
|
slice
-
pluralize(value, arg) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
arg |
|
|
- Source:
Returns:
-
Type
-
string
-
prefix(value, pref) → {*}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
pref |
|
|
- Source:
Returns:
-
Type
-
*
-
prettyDate(dateStr) → {string}
-
Parameters:
| Name |
Type |
Description |
dateStr |
|
|
- Source:
Returns:
-
Type
-
string
-
prettyDateNoTime(dateStr) → {string}
-
Parameters:
| Name |
Type |
Description |
dateStr |
|
|
- Source:
Returns:
-
Type
-
string
-
prettyFileSize(value) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
string
-
publish(value) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
string
-
read(value) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
string
-
secondsToTime(secs) → {string}
-
Parameters:
| Name |
Type |
Description |
secs |
|
|
- Source:
Returns:
-
Type
-
string
-
spaceAfter(value) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
string
-
spaceBefore(value) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
string
-
suffix(value, suff) → {*}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
suff |
|
|
- Source:
Returns:
-
Type
-
*
-
withColon(value) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
string
-
withComma(value) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
string
-
withForwardSlash(value) → {string}
-
Parameters:
| Name |
Type |
Description |
value |
|
|
- Source:
Returns:
-
Type
-
string