si-funciona
Version:
Funciones de utilidad para uso general. [General usage utility functions.]
12 lines (11 loc) • 451 B
TypeScript
import 'core-js/stable';
/**
* Leverage buildArrayBase to generate an array filled with a copy of the provided item.
* The length defines how long the array should be.
* @memberOf module:arrayHelpers
* @param {*} item - The item to be used for each array element
* @param {number} length - The desired length of the array
* @returns {Array.<*>}
*/
declare const buildArray: (item: any, length: number) => Array<any>;
export default buildArray;