UNPKG
@twilio-paste/paste-reakit-fork
Version:
latest (1.4.1)
1.4.1
Forked Reakit that addresses SSR hydration issues
twilio-labs/paste-reakit
@twilio-paste/paste-reakit-fork
/
es
/
findEnabledItemById-8ddca752.js
9 lines
(7 loc)
•
246 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
function
findEnabledItemById
(
items, id
) {
if
(!id)
return
undefined
;
return
items ===
null
|| items ===
void
0
?
void
0
: items.
find
(
function
(
item
) {
return
item.
id
=== id && !item.
disabled
; }); }
export
{ findEnabledItemById
as
f };