Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ahh/mod.ts>I.repeat

Idiomatic type-safety functions.
Go to Latest
method I.repeat
import { I } from "https://deno.land/x/ahh@v0.10.3/mod.ts";

Creates an Iterator that endlessly yields an item.

Example

import { I } from "./mod.ts";

const iter = I.repeat(1);

console.log(iter.next()); // 1
console.log(iter.next()); // 1
console.log(iter.next()); // 1