cljs.spec.alpha/int-in-range?

functionpreviously cljs.spec/int-in-range?Edit
(int-in-range? start end val)

Source docstring:
Return true if start <= val, val < end and val is a fixed
precision integer.
Source code @ clojurescript:src/main/cljs/cljs/spec/alpha.cljs
(defn int-in-range?
  [start end val]
  (cond
    (integer? val) (c/and (<= start val) (< val end))

    (instance? goog.math.Long val)
    (c/and (.lessThanOrEqual start val)
           (.lessThan val end))

    (instance? goog.math.Integer val)
    (c/and (.lessThanOrEqual start val)
           (.lessThan val end))

    :else false))