Yields numerical values based on the an input of objects and the property to use.
const data = [ { size: 10 }, { size: 20 }, { size: 0 }][...enumerateNumericalValues(data, `size`)]; // [ 10, 20, 0 ] Copy
const data = [ { size: 10 }, { size: 20 }, { size: 0 }][...enumerateNumericalValues(data, `size`)]; // [ 10, 20, 0 ]
If any of objects has a non numerical value for propertyName, a TypeError is thrown.
propertyName
Yields numerical values based on the an input of objects and the property to use.
If any of objects has a non numerical value for
propertyName, a TypeError is thrown.