fill-array
Fill an array to the given length by repeating its elements. This is a very fast implementation.
Last updated 11 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fill-array 
SYNC missed versions from official npm registry.

fill-array NPM version

Fill an array to the given length by repeating its elements. This is a very fast implementation.

Install with npm

npm i fill-array --save

Usage

var fill = require('fill-array');

fill(['a', 'b', 'c'], 10);
//=> ['a','b','c','a','b','c','a','b','c','a']

Run tests

Install dev dependencies:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015, Jon Schlinkert. Released under the MIT license


This file was generated by verb on January 26, 2015.

Current Tags

  • 1.0.0                                ...           latest (11 years ago)

1 Versions

  • 1.0.0                                ...           11 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |