Skip to content
Generates random interval
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc.json initial commit May 9, 2019
.travis.yml update ci May 9, 2019
LICENSE Initial commit May 9, 2019 Update May 13, 2019

deno random interval Build Status

import { randomInterval, ClearInterval } from "./mod.ts";

const i: ClearInterval = randomInterval(() => {
}, 50); // will prompt randomly foo in the console every 0-50ms

setTimeout(i.clear, 1000); // clear the interval after 1second
You can’t perform that action at this time.