count
algebra.count(set)
Returns the number of items that might be loaded by the set
. This makes use of set.Algebra's
By default, this returns Infinity.
var algebra = new set.Algebra({
set.props.rangeInclusive("start", "end")
});
algebra.count({start: 10, end: 19}) //-> 10
algebra.count({}) //-> Infinity
Parameters
- set
{Set}
:[description]
Returns
{Number}
:
The number of items in the set if known, Infinity
if unknown.