UNPKG

livr

Version:

Lightweight validator supporting Language Independent Validation Rules Specification

12 lines (9 loc) 329 B
const util = require('../../util'); function to_uc() { return (value, params, outputArr) => { if (util.isNoValue(value) || typeof value === 'object') return; const strValue = typeof value === 'string' ? value : String(value); outputArr.push(strValue.toUpperCase()); }; } module.exports = to_uc;