deno.land / x / rambda@v9.1.1 / source / startsWith-spec.ts

startsWith-spec.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import {startsWith} from 'rambda'
describe('R.startsWith - array', () => { const question = [{a: 1}] const iterable = [{a: 1}, {a: 2}] it('happy', () => { const result = startsWith(question, iterable) result // $ExpectType boolean }) it('curried', () => { const result = startsWith(question)(iterable) result // $ExpectType boolean })})
describe('R.startsWith - string', () => { const question = 'foo' const iterable = 'foo bar' it('happy', () => { const result = startsWith(question, iterable) result // $ExpectType boolean }) it('curried', () => { const result = startsWith(question)(iterable) result // $ExpectType boolean })})
rambda

Version Info

Tagged at
2 months ago