UNPKG

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.

10 lines (9 loc) 454 B
/** * Creates an array of strings of a specified length, using a provided string generator function. * * @param {number} length - The desired length of the array. * @param {() => string} makeString - A function that generates a string for each element. * @returns {string[]} An array of strings of the specified length. */ declare const makeArrayOfStrings: (length: number, makeString: () => string) => string[]; export default makeArrayOfStrings;