Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 493 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 493 Bytes

Random Take

Travis CI

import randomTake from "@rojo2/random-take";

const listOfNumbers = [1,2,3,4];
const number = randomTake(listOfNumbers); // random value from listOfNumbers 

IMPORTANT: The difference between this and random-pick is that this function removes the element from the array while random-pick doesn't.

Made with ❤️ by ROJO 2 (http://rojo2.com)