keysTransform overview
Added in v1.0.0-alpha
Table of contents
object
keysTransform
Recursively transform all keys of object/array with custom processor
Signature
export declare const keysTransform: (processor: (input: string) => string) => (input: any) => any
Example
import { keysTransform } from '@warungpintar/ninshu'
keysTransform((s: string) => s.toLowerCase())({ FULLNAME: 'rin' }) // output: {fullname: 'rin'}
Added in v1.0.0-alpha