When you need a computer to just pick it, reach for Pickitt!
Pickitt is a simple utility function designed to help you pick an element from an array.
npm install pickitt
yarn add pickitt
import { posOrNeg } from "pickitt";
const randomPosOrNegNum = posOrNeg() * 58;
// `randomPosOrNegNum` will either be 58 or -58
Generated using TypeDoc