@plexis/repeat
v0.0.22
Published
Repeats the input text number of times.
Downloads
11
Readme
@plexis/repeat
Repeats the input text number of times.
Installation
npm i @plexis/repeat
Usage
import repeat from '@plexis/repeat';
repeat('ABCD');
// => true
repeat('Apollo11', 2);
// => 'Apollo11Apollo11'
repeat('x', 2);
// => 'xx'
repeat('x', 2, '+');
// => 'x+x'
repeat('xx', 2, '_');
// => 'xx_xx'
Aliases
import repeat from '@plexis/repeat';
import {repeat, multiply} from 'plexis';