Awesome Lists

filled-array

by sindresorhus

JavaScriptpushed over 4 years ago

Returns an array filled with the specified input

AI summary

Array filler

Creates an array of specified length filled with a given value or function returning values

stars
43
forks
5
watching
7
awesome list
1
View on GitHub

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/sindresorhus/filled-array/links.svg)](https://awesome.facts.dev/awesome/sindresorhus/filled-array)
HTML
<a href="https://awesome.facts.dev/awesome/sindresorhus/filled-array"><img src="https://awesome.facts.dev/shield/sindresorhus/filled-array/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/sindresorhus/filled-array/links.svg

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.