Util
toCollection
Generate a collection from a custom generators functions
import { toCollection } from '@ngneat/falso';
toCollection(() => {
return { data: randNumber(); }
})
toCollection(() => {
return { data: randNumber(); }
}, { length: 10 }) // default is no length.
Live Editor
Result
Loading...