UNPKG
typedash
Version:
latest (3.3.3)
3.3.3
3.3.2
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.1
3.1.0
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.2.0
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
modern, type-safe collection of utility functions
github.com/bengry/typedash
bengry/typedash
typedash
/
dist
/
invert
/
index.cjs
12 lines
(10 loc)
•
266 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
;
// src/functions/invert/invert.ts
function
invert
(
object
) {
return
Object
.
fromEntries
(
Object
.
entries
(
object
).
map
(
(
[key, value]
) =>
[value, key]) ); }
exports
.
invert
= invert;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.cjs.map