UNPKG
geninq
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
A JavaScript version of the Linq library for Generators
github.com/PaulPopat/geninq
PaulPopat/geninq
geninq
/
src
/
functions
/
skip.test.ts
12 lines
(10 loc)
•
249 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
It
}
from
"../test-utils"
;
import
"./skip"
;
import
"./array"
;
It
(
"Skips from a sequence"
,
(
s
) =>
s.
skip
(
2
).
array
(), [
3
,
4
], [
1
,
2
,
3
,
4
]);
It
(
"Skips last from a sequence"
,
(
s
) =>
s.
skip
(
2
,
"last"
).
array
(), [
1
,
2
], [
1
,
2
,
3
,
4
] );