vegan-ipsum
Version:
Generates passages of vegan-themed placeholder text suitable for use in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.
9 lines (8 loc) • 328 B
TypeScript
/**
* Creates an array of a specified length, where each element is its index.
*
* @param {number} length - The desired length of the array. Defaults to 0.
* @returns {number[]} An array of indexes from 0 to `length - 1`.
*/
declare const makeArrayOfLength: (length?: number) => number[];
export default makeArrayOfLength;