1.1.2 • Published 5 years ago

string-repeat-x v1.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
5 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

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago