stdlib-js

stdlib-js/utils-constant-function

Constant function.

JavaScript
1
0
Apache License 2.0

The **@stdlib/utils-constant-function** package provides a tiny utility that creates a constant function — a function that always returns the same supplied value (including object references) regardless of its arguments. It is aimed at developers working with the Stdlib JavaScript scientific‑computing ecosystem (or any Node.js/browser/Deno project) who need a simple, reusable way to generate such immutable‑return functions.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of stdlib-js/utils-constant-function

Account's avatar
Uniformly distributed pseudorandom numbers between 0 and 1.
Account's avatar
tap-producing test harness for node and browsers
Account's avatar
Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use ca
Account's avatar
Minimal TAP output formatter.
Account's avatar
Benchmark harness.

Support the repos that depend on this repository

Top contributors

stdlib-bot's profile
stdlib-bot
100 contributions
Planeshifter's profile
Planeshifter
5 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet