Sign in
cobalt
/
cobalt
/
0e7d696c3ce6a2ef566d0fabc20213b6a651f942
/
.
/
src
/
third_party
/
devtools
/
node_modules
/
invert-kv
/
index.js
blob: 27f9cbb8eaf281a1cc1300a23798ce4fdf74c174 [
file
] [
log
] [
blame
]
'use strict'
;
module
.
exports
=
object
=>
{
if
(
typeof
object
!==
'object'
)
{
throw
new
TypeError
(
'Expected an object'
);
}
const
ret
=
{};
for
(
const
key of
Object
.
keys
(
object
))
{
const
value
=
object
[
key
];
ret
[
value
]
=
key
;
}
return
ret
;
};