├── .editorconfig ├── .eslintrc.json ├── .gitattributes ├── .github └── contributing.md ├── .gitignore ├── .travis.yml ├── .verb.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── benchmark ├── code │ ├── add.js │ ├── array.js │ ├── for-bitwise.js │ ├── for-join.js │ ├── for-str-cache-2.js │ ├── for-str-cache.js │ ├── for-str.js │ ├── native.js │ ├── new-array-for.js │ ├── new-array-join.js │ ├── repeat-string-1.3.0.js │ ├── repeat-string-1.5.4.js │ ├── repeat-string.js │ ├── repeating.js │ ├── unshift.js │ ├── while-array-1.js │ ├── while-array-2.js │ ├── while-array-3.js │ ├── while-bitwise.js │ ├── while-square-root.js │ ├── while-str-stack.js │ ├── while-str.js │ └── while.js ├── fixtures │ ├── 0.js │ ├── 1.js │ ├── 10.js │ ├── 100.js │ ├── 2.js │ ├── 2000.js │ ├── 20000.js │ ├── 25.js │ ├── 250.js │ ├── 3.js │ ├── 4.js │ ├── 5.js │ └── 50.js ├── helper.js ├── index.js └── last.md ├── bower.json ├── component.json ├── index.js ├── package.json └── test.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/.github/contributing.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/.travis.yml -------------------------------------------------------------------------------- /.verb.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/.verb.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/code/add.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/add.js -------------------------------------------------------------------------------- /benchmark/code/array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/array.js -------------------------------------------------------------------------------- /benchmark/code/for-bitwise.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/for-bitwise.js -------------------------------------------------------------------------------- /benchmark/code/for-join.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/for-join.js -------------------------------------------------------------------------------- /benchmark/code/for-str-cache-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/for-str-cache-2.js -------------------------------------------------------------------------------- /benchmark/code/for-str-cache.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/for-str-cache.js -------------------------------------------------------------------------------- /benchmark/code/for-str.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/for-str.js -------------------------------------------------------------------------------- /benchmark/code/native.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/native.js -------------------------------------------------------------------------------- /benchmark/code/new-array-for.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/new-array-for.js -------------------------------------------------------------------------------- /benchmark/code/new-array-join.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/new-array-join.js -------------------------------------------------------------------------------- /benchmark/code/repeat-string-1.3.0.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/repeat-string-1.3.0.js -------------------------------------------------------------------------------- /benchmark/code/repeat-string-1.5.4.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/repeat-string-1.5.4.js -------------------------------------------------------------------------------- /benchmark/code/repeat-string.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('../..'); -------------------------------------------------------------------------------- /benchmark/code/repeating.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/repeating.js -------------------------------------------------------------------------------- /benchmark/code/unshift.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/unshift.js -------------------------------------------------------------------------------- /benchmark/code/while-array-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/while-array-1.js -------------------------------------------------------------------------------- /benchmark/code/while-array-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/while-array-2.js -------------------------------------------------------------------------------- /benchmark/code/while-array-3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/while-array-3.js -------------------------------------------------------------------------------- /benchmark/code/while-bitwise.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/while-bitwise.js -------------------------------------------------------------------------------- /benchmark/code/while-square-root.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/while-square-root.js -------------------------------------------------------------------------------- /benchmark/code/while-str-stack.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/while-str-stack.js -------------------------------------------------------------------------------- /benchmark/code/while-str.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/while-str.js -------------------------------------------------------------------------------- /benchmark/code/while.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/code/while.js -------------------------------------------------------------------------------- /benchmark/fixtures/0.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['afa', 0]; -------------------------------------------------------------------------------- /benchmark/fixtures/1.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['abc', 1]; -------------------------------------------------------------------------------- /benchmark/fixtures/10.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['abcabc', 5]; -------------------------------------------------------------------------------- /benchmark/fixtures/100.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['fas', 100]; 4 | 5 | -------------------------------------------------------------------------------- /benchmark/fixtures/2.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['def', 2]; -------------------------------------------------------------------------------- /benchmark/fixtures/2000.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['lll', 2000]; 4 | 5 | -------------------------------------------------------------------------------- /benchmark/fixtures/20000.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/fixtures/20000.js -------------------------------------------------------------------------------- /benchmark/fixtures/25.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['iai', 25]; -------------------------------------------------------------------------------- /benchmark/fixtures/250.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['bbb', 250]; 4 | 5 | -------------------------------------------------------------------------------- /benchmark/fixtures/3.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['ghi', 3]; -------------------------------------------------------------------------------- /benchmark/fixtures/4.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['xyz', 4]; -------------------------------------------------------------------------------- /benchmark/fixtures/5.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['fff', 5]; -------------------------------------------------------------------------------- /benchmark/fixtures/50.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ['xyz', 50]; 4 | 5 | -------------------------------------------------------------------------------- /benchmark/helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/helper.js -------------------------------------------------------------------------------- /benchmark/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/index.js -------------------------------------------------------------------------------- /benchmark/last.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/benchmark/last.md -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/bower.json -------------------------------------------------------------------------------- /component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/component.json -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/package.json -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/repeat-string/HEAD/test.js --------------------------------------------------------------------------------