import { once } from "https://deno.land/x/args@2.1.1/deps.ts";
Create a function that calls and cache a function once
Examples
import once from 'https://ksxgithub.github.io/deno-once/index.js'
const ran = once(Math.random)
console.log(ran() === ran()) // => true
import once from 'https://ksxgithub.github.io/deno-once/index.js' const ran = once(Math.random) console.log(ran() === ran()) // => true