Skip to content

Commit fff02de

Browse files
committed
1
1 parent 98f31d4 commit fff02de

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

files/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5080,6 +5080,13 @@ Explanation:
50805080
Example:
50815081
50825082
```
5083+
const list = [1, 2, 3]
5084+
5085+
const result = switcher(list.length)
5086+
.is(x => x < 2, 4)
5087+
.is(x => x < 4, 6)
5088+
.default(7)
5089+
// => 6
50835090
```
50845091
50855092
Categories: Logic

0 commit comments

Comments
 (0)