Repository
Current version released
3 years ago
Versions
stable-fn
Ensure the same input always produces the same output.
Useful for stress testing functions in your unit tests to make sure their behaviors are consistent.
Usage
Deno π
import { stableFunction } from "https://deno.land/x/stable_fn/mod.ts";
import { randomItem } from "https://deno.land/x/random_item/mod.ts";
stableFunction(() => true); //=> true
stableFunction(() => randomItem(["a", "b", "c"])); //=> false
Node.js π’
import { stableFunction } from "@ultirequiem/stable-fn";
Browser
Using type module π±
Using a plain script tag π
You have the same API on all of this platforms.
Documentation
Autogenerated Documentation π
Support
Open an Issue, I will check it a soon as possible π
If you want to hurry me up a bit send me a tweet π
Consider supporting me on Patreon if you like my work π
Donβt forget to start the repo β
Licence
Licensed under the MIT License.