to-enum
v1.2.2
Published
Convert given object to enum like
Downloads
5
Readme
toEnum
Convert given object to enum like
Usage: toEnum(ob: { [key: string]: any }): { [key: string]: any }
import { toEnum } from 'to-enum'
toEnum({ 1: 'good' })
// Output: { '1': 'good', good: '1' }
This module exported from utilizes project.