Array to flatten
Selector for the child property
An flatten array
The array from which you want a random entry
Optional. If provided, the function checks that the returned entry is not already in the arrayToPopulate.
The amount of times the function should try to return a unique value (since this method is recursive). Defaults to 5.
a random entry from a an array
Based on Math.random()
Groups an array of items into multiple arrays, grouped by a common property
All properties
Creates and returns a new array, clearing duplicates with new Set().
The array to remove duplicates from
An edited copy of @param val
Generated using TypeDoc
Recursively flattens an array by a specific propertyName or property accessor. It does not mutate the items, meaning the items keeps their original child array.