Skip to content

upperize

Convert all object keys to upper case

146 bytes

Usage

Convert all keys in an object to upper case.

import * as _ from 'radashi'
const ra = {
Mode: 'god',
Power: 'sun',
}
_.upperize(ra) // => { MODE, POWER }

The _.upperize function is a shortcut for _.mapKeys(obj, k => k.toUpperCase())