random-item:从数组中获取随机项

时间:2021-04-29 11:40:00
【文件属性】:
文件名称:random-item:从数组中获取随机项
文件大小:5KB
文件格式:ZIP
更新时间:2021-04-29 11:40:00
JavaScript 随机项目 从数组中获取随机项 安装 $ npm install random-item 用法 import randomItem from 'random-item' ; randomItem ( [ ':horse_face:' , ':unicorn:' , ':rainbow:' ] ) ; //=> ':unicorn:' randomItem . multiple ( [ ':horse_face:' , ':unicorn:' , ':rainbow:' ] , 2 ) ; //=> [':rainbow:', ':unicorn:'] 有关的 生成一个随机整数 产生一个随机的浮点数 从对象获取随机密钥 从对象获取随机属性 生成连续唯一的随机数 从数组中获取连续的唯一元素 生成加密强度高的随机字符串
【文件预览】:
random-item-main
----index.js(407B)
----test.js(482B)
----package.json(726B)
----index.test-d.ts(360B)
----readme.md(1KB)
----.github()
--------workflows()
----license(1KB)
----index.d.ts(599B)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(19B)

网友评论