Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ahh/src/iterator.ts>Iterator#skip

Opinionated idiomatic features for TypeScript.
Go to Latest
method Iterator.prototype.skip
import { Iterator } from "https://deno.land/x/ahh@v0.13.0/src/iterator.ts";

Creates an Iterator that skips the first n items.

Examples

Example 1

import { assert } from "../test_deps.ts";
import I from "./iterator.ts";

const iter = I.fromIter([1, 2, 3]).skip(2);

assert(iter.next() === 3);

Parameters

n: number