auto-core.numbers

Helpers for manipulating numbers in the same way between clj and cljs

check-val-in-range

(check-val-in-range min max val)

Returns nil if val is in the range [min;max[. Otherwise, returns val itself.

check-vals-in-range

(check-vals-in-range min max vals)

Check if vals are between the range of integers (i.e. [min;max[. Returns the value if it exceeds the range.