Skip to main content
Module

x/ramda/source/once.js

:ram: Practical functional Javascript
Latest
import * as ramda from "https://deno.land/x/ramda@v0.27.2/source/once.js";

Variables

Accepts a function fn and returns a function that guards invocation of fn such that fn can only ever be called once, no matter how many times the returned function is invoked. The first value calculated is returned in subsequent invocations.