UNPKG
vue-filter2
Version:
latest (0.1.6)
0.1.6
0.1.4
0.1.3
0.1.2
0.1.1
A collection of Vue.js filters
github.com/bum/vue-filters
bum/vue-filters
vue-filter2
/
src
/
filters
/
string
/
uppercase.js
11 lines
(9 loc)
•
210 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ isNotEmpty, isUndef }
from
'../util'
/** * Converts a string to UPPERCASE * * ('abc') => 'ABC' */
export
const
uppercase
= (
val
) =>
isNotEmpty
(val) ? val.
toString
().
toUpperCase
() :
''