Skip to content

Commit bd0a493

Browse files
committed
Readme.md got modified
Language added for all snippets
1 parent 1131d10 commit bd0a493

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ In order to select an element within an array, you can simply use `Math.random()
88

99
To install it you can simply do the following command:
1010

11-
```
11+
```bash
1212
npm i @smakss/random-array-element
1313
or
1414
yarn add @smakss/random-array-element
1515
```
1616

1717
to include it with common js module you should do this:
1818

19-
```
19+
```js
2020
var randomArrayElement = require('@smakss/random-array-element');
2121
```
2222

2323
and to include it with ECMAscript module you can simply do this one:
2424

25-
```
25+
```js
2626
import randomArrayElement from '@smakss/random-array-element';
2727
```
2828

0 commit comments

Comments
 (0)