to-enum

Convert given object to enum like

Usage no npm install needed!

<script type="module">
  import toEnum from 'https://cdn.skypack.dev/to-enum';
</script>

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.