-
Notifications
You must be signed in to change notification settings - Fork 16
/
deno_find.deno.txt
23 lines (16 loc) · 1.6 KB
/
deno_find.deno.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DENO_FIND
VERSION ==> #Part of Deno
#Browser compatible
std/collections/includes_value.ts
includesValue(OBJ, VAL)->BOOL #Returns true if one OBJ value === VAL
std/collections/
first_not_nullish_of.ts
firstNotNullishOf
(ITERABLE, FUNC(VAL)->VAL2) #Returns first VAL2 that is not null|undefined
[->VAL2] #Returns undefined if none
std/collections/find_single.ts
findSingle
(ITERABLE, FUNC(VAL)->BOOL)
[->VAL] #Like ITERABLE.find() but return undefined if >=2 items match