retrieved
v0.1.0
Published
Run once then retrieve
Downloads
2
Readme
Create Retrieved
Usage
import { createRetrieved } from "retrieved";
declare function getBrowser(): "chrome" | "firefox" | "safari";
const detectBrowser = createRetrieved(getBrowser);
const browser = detectBrowser();
browser(); // getBrowser() is ran
browser(); // getBrowser() is not ran