UNPKG
@hackoregon/utils
Version:
ci (0.0.5-ci.114)
latest (0.0.5)
0.0.5
0.0.5-ci.120
0.0.5-ci.114
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
Common utils for CIVIC
github.com/hackoregon/civic
hackoregon/civic
@hackoregon/utils
/
src
/
utils
/
getKeyNames.js
10 lines
(8 loc)
•
170 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
getKeyNames
= obj => {
const
keyNames = {};
Object
.
keys
(obj).
forEach
(
key
=>
{ keyNames[key] = key; });
return
keyNames; };
export
default
getKeyNames;