This code is used to filter the true values, I don't understand why that last array with zero is being used.
const rand = [{ inputNumber }, { inputBig }, { inputSmall }, { inputSymbol }]
.filter(value => Object.values(value)[0])
This code is used to filter the true values, I don't understand why that last array with zero is being used.
const rand = [{ inputNumber }, { inputBig }, { inputSmall }, { inputSymbol }]
.filter(value => Object.values(value)[0])
That notation may be used to avoid to have to parse values when you need to remove symbols like quotation marks.