UNPKG
@bemedev/basifun
Version:
latest (0.5.3)
0.5.3
0.5.2
0.5.1
0.5.0
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.6
0.1.5
0.1.4
Basic ts functions
github.com/chlbri/basifun
chlbri/basifun
@bemedev/basifun
/
lib
/
functions
/
objects
/
identify.js
14 lines
(12 loc)
•
297 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
identify = arg => {
if
(!arg)
return
[];
const
entries = Object.entries(arg);
const
out
= entries.map(([__id, value]) => {
const
out2 = { ...value, __id };
return
out2; });
return
out
; }; export { identify };
//# sourceMappingURL=identify.js.map