Public
Script
Readme

Returns an array of [len] size filled with [content] values for elements.

1
2
export const fillArray = <T>(content: T, len: number): T[] =>
new Array(len).fill(content, 0, len);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023