npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fill-array

1.0.0

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:14
$ npm install fill-array
DailyWeeklyMonthlyYearly

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

  • github/jonschlinkert
  • twitter/jonschlinkert

License

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


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