UNPKG
@lifaon/rx-js-light
Version:
beta (1.0.0-beta.2)
latest (2.2.0)
2.2.0
2.1.0
2.0.0
1.2.1
1.2.0
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
1.0.0-beta.2
1.0.0-beta.1
Blazing fast Observables
lifaon74/rx-js-light
@lifaon/rx-js-light
/
src
/
misc
/
errors
/
range-error
/
normalize-range-options.mjs
9 lines
(8 loc)
•
215 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export
function
normalizeRangeOptions
(
{min =
Number
.NEGATIVE_INFINITY, max =
Number
.POSITIVE_INFINITY, minIncluded =
true
, maxIncluded =
true
}
) {
return
{ min, max, minIncluded, maxIncluded }; }