qsu
Version:
qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.
1 lines • 69 B
JavaScript
export function arrWithDefault(r,t=0){return t<1?[]:Array(t).fill(r)}