nano-repeat
v1.0.0
Published
Minimalistic String.prototype.repeat
Downloads
29
Maintainers
Readme
nano-repeat
Install
npm i nano-repeat
Usage
const repeat = require('nano-repeat')
repeat('abc', 3)
//=> abcabcabc
repeat('abc', -1)
//=> RangeError: count must be non-negative
API
repeat(str, count)
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
nano-repeat © egoist, Released under the MIT License. Authored and maintained by egoist with help from contributors (list).
egoist.moe · GitHub @egoist · Twitter @rem_rin_rin