1.0.1 • Published 5 years ago
@compactjs/shuffle v1.0.1
Table of Contents
Install
NPM:
npm install @compactjs/shuffleUsage
/**
* returns a shuffled array
*/
function shuffle(array: any[]): any[];As module:
import { shuffle } from '@compactjs/shuffle';Example:
const array = [0, 1, 2, 3];
const shuffled = shuffle(array);
console.log(array); // => [0, 1, 2, 3]
console.log(shuffled); // => e.g. [3, 1, 2, 0]Run tests
npm run testContact
👤 Timo Bechtel
- Website: https://timobechtel.com
- Twitter: @TimoBechtel
- GitHub: @TimoBechtel
🤝 Contributing
Contributions, issues and feature requests are welcome!
- Check issues
- Fork the Project
- Create your Feature Branch (
git checkout -b feat/AmazingFeature) - Test your changes
npm run test - Commit your Changes (
git commit -m 'feat: add amazingFeature') - Push to the Branch (
git push origin feat/AmazingFeature) - Open a Pull Request
Commit messages
This project uses semantic-release for automated release versions. So commits in this project follow the Conventional Commits guidelines. I recommend using commitizen for automated commit messages.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Distributed under the MIT License.
This README was generated with ❤️ by readme-md-generator