Link Search Menu Expand Document

keysSnakeCase overview

Added in v1.0.0-alpha


Table of contents


object

keysSnakeCase

Recursively transform all keys of object/array to snake_case

Signature

export declare const keysSnakeCase: (input: any) => any

Example

import { keysSnakeCase } from '@warungpintar/ninshu'

keysSnakeCase({ fullName: 'rin' })
// => output: {full_name: 'rin'}

Added in v1.0.0-alpha