UNPKG

vue-filter2

Version:

A collection of Vue.js filters

11 lines (9 loc) 210 B
import { isNotEmpty, isUndef } from '../util' /** * Converts a string to UPPERCASE * * ('abc') => 'ABC' */ export const uppercase = (val) => isNotEmpty(val) ? val.toString().toUpperCase() : ''