1.1.2 • Published 6 years ago

string-repeat-x v1.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

string-repeat-x

Constructs and returns a new string which contains the specified number of copies of the string.

module.exports*

Kind: Exported member
Returns: * - The target.

ParamTypeDescription
stringstringThe string.
countnumberstringThe count.

Example

import repeat from 'string-repeat-x';

repeat('abc', -1); // RangeError
repeat('abc', 0); // ''
repeat('abc', 1); // 'abc'
repeat('abc', 2); // 'abcabc'
repeat('abc', 3.5); // 'abcabcabc' (count will be converted to integer)
repeat('abc', 1/0); // RangeError
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago