shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
pickSome
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.array
This returns you one or more random item of the passed array
Params
- array*-Any[]
The array in which you want to pick a random item
- $min1Number
The minimum number of items to pick
- $maxnullNumber
The maximum number of items to pick
Return
- -Any
The random array item(s)
Example
import { pickSome } from '@blackbyte/sugar/array':
pickSome(['hello','world','test'], 1, 2);Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space