2.0.0 • Published 3 years ago

@f0c1s/non-consecutive-repeat-in-string v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

node-non-consecutive-repeat-in-string

Remove consecutively repeated characters from string

Installation

npm i @f0c1s/non-consecutive-repeat-in-string

Usage

const {nonConsecutiveRepeat} = require('@f0c1s/non-consecutive-repeat-in-string')

nonConsecutiveRepeat('whatt') // 'what'
nonConsecutiveRepeat('aaaaaaaaaaaaaa') // 'a'

License

MIT