It returns a string with its characters in random order.
Install
Install all functions of strman
yarn add strmanor just the shuffle function
yarn add strman.shuffleUsage
import { shuffle } from 'strman'
// OR
import shuffle from 'strman.shuffle'Parameters:
| Name | Type | Description |
|---|---|---|
value |
String | The String! |
- Source:
Returns:
The String shuffled!
- Type
- String
Example
shuffle('strman')
// => 'rtmnas'