File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414yarn add @smakss/random-array-element
1515```
1616
17- to include with ` ES5 ` or common js you can simply do this:
17+ to include it with common js module you should do this:
1818
1919```
2020var randomArrayElement = require('@smakss/random-array-element');
2121```
2222
23- or to include with ` ES6 ` you can simply do this one:
23+ and to include it with ECMAscript module you can simply do this one:
2424
2525```
2626import randomArrayElement from '@smakss/random-array-element'
Original file line number Diff line number Diff line change 11{
22 "name" : " @smakss/random-array-element" ,
3- "version" : " 1.0.5 " ,
3+ "version" : " 1.0.6 " ,
44 "description" : " Selects a random array element without repetition." ,
55 "type" : " module" ,
66 "main" : " ./index.cjs" ,
You can’t perform that action at this time.
0 commit comments