UNPKG
utils-lazy-hook
Version:
latest (1.8.0)
1.8.0
1.7.0
1.6.2
1.6.1
1.6.0
1.5.0
1.4.0
1.3.0
1.2.1
1.1.1
1.1.0
1.0.0
0.1.3
0.1.2
utils-lazy-hook
github.com/gitihm/utils-lazy-hook
gitihm/utils-lazy-hook
utils-lazy-hook
/
lib
/
useFlatMap.js
8 lines
(7 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
useFlatMap
=
void
0
;
function
useFlatMap
(
array, keyValue
) {
return
array.
map
(
(
item
) =>
item[keyValue]).
flat
(); }
exports
.
useFlatMap
= useFlatMap;