1.2.2 • Published 3 years ago
to-enum v1.2.2
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.