UNPKG

aureooms-js-array

Version:

array manipulation code bricks for JavaScript

15 lines (7 loc) 140 B
export function repeat ( element, times, out ) { var i; for ( i = 0 ; i < times ; ++i ) { out.push( element ); } return out; }