It returns a string with its characters in random order.
Install
Install all functions of strman
yarn add strman
or just the shuffle function
yarn add strman.shuffle
Usage
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'