UNPKG

abrupt

Version:

(Random - Strings, Numbers, Booleans, Floats, Objects, Arrays) (Crypto - Base64, AES, RSA, MD5, SHA512, Morse, Rot13)

9 lines (7 loc) 206 B
const randarray = require("./array.js") randobjectkeys = x => randarray(Object.keys(x)) module.exports = (x, o) => { const randkey = randobjectkeys(x) if (o) return randkey return x[randkey] }