UNPKG

@yellow-ticket/seed-json-schema

Version:

Seed a JSON Schema with random values.

8 lines (6 loc) 202 B
import { faker } from '@faker-js/faker' export function repeat(min: number, max: number, callback: () => void): void { for (let i = 0; i < faker.number.int({ min, max }); i++) { callback() } }