Skip to main content

Predicates

63
  • NaN?

    Returns true if num is NaN, else false

  • any?

    Returns true if given any argument.

  • associative?

    Returns true if coll implements IAssociative

  • bases

    Returns the immediate prototype of c

  • boolean?

    Return true if x is a Boolean

  • char?

    Returns true if x is a JavaScript string of length one.

  • chunked-seq?

    Return true if x satisfies IChunkedSeq.

  • counted?

    Returns true if coll implements count in constant time

  • double?

    Returns true for JavaScript numbers, false otherwise.

  • even?

    Returns true if n is even, throws an exception if n is not an integer

  • false?

    Returns true if x is the value false, false otherwise.

  • float?

    Returns true for JavaScript numbers, false otherwise.

  • fn?

    Return true if f is a JavaScript function or satisfies the Fn protocol.

  • ident?

    Return true if x is a symbol or keyword

  • identical?

    Tests if 2 arguments are the same object

  • ifn?

    Returns true if f returns true for fn? or satisfies IFn.

  • indexed?

    Returns true if coll implements nth in constant time

  • infinite?

    Returns true for Infinity and -Infinity values.

  • inst?

    Return true if x satisfies Inst

  • instance?

    Evaluates x and tests if it is an instance of the type c. Returns true or false

  • int?

    Return true if x satisfies integer? or is an instance of goog.math.Integer or goog.math.Long.

  • integer?

    Returns true if n is a JavaScript number with no decimal part.

  • isa?

    Returns true if (= child parent), or child is directly or indirectly derived from parent, either via a JavaScript type i...

  • keyword?

    Return true if x is a Keyword

  • list?

    Returns true if x implements IList

  • map-entry?

    Returns true if x satisfies IMapEntry

  • map?

    Return true if x satisfies IMap

  • nat-int?

    Return true if x satisfies int? and is a natural integer value.

  • neg-int?

    Return true if x satisfies int? and is negative.

  • neg?

    Returns true if num is less than zero, else false

  • nil?

    Returns true if x is nil, false otherwise.

  • number?

    Returns true if x is a JavaScript number.

  • odd?

    Returns true if n is odd, throws an exception if n is not an integer

  • pos-int?

    Return true if x satisfies int? and is positive.

  • pos?

    Returns true if num is greater than zero, else false

  • qualified-ident?

    Return true if x is a symbol or keyword with a namespace

  • qualified-keyword?

    Return true if x is a keyword with a namespace

  • qualified-symbol?

    Return true if x is a symbol with a namespace

  • realized?

    Returns true if a value has been produced for a delay or lazy sequence.

  • record?

    Return true if x satisfies IRecord

  • reversible?

    Returns true if coll satisfies? IReversible.

  • satisfies?

    Returns true if x satisfies the protocol

  • seq?

    Return true if s satisfies ISeq

  • seqable?

    Return true if the seq function is supported for s

  • sequential?

    Returns true if coll satisfies ISequential

  • set?

    Returns true if x satisfies ISet

  • simple-ident?

    Return true if x is a symbol or keyword without a namespace

  • simple-keyword?

    Return true if x is a keyword without a namespace

  • simple-symbol?

    Return true if x is a symbol without a namespace

  • some?

    Returns true if x is not nil, false otherwise.

  • sorted?

    Returns true if coll satisfies ISorted

  • special-symbol?

    Returns true if x names a special form

  • string?

    Returns true if x is a JavaScript string.

  • supers

    Returns the immediate and indirect prototypes of c, if any

  • symbol?

    Return true if x is a Symbol

  • true?

    Returns true if x is the value true, false otherwise.

  • type

    Return x's constructor.

  • uri?

    Returns true x is a goog.Uri instance.

  • uuid?

    Return true if x is a UUID.

  • var?

    Returns true if v is of type cljs.core.Var

  • vector?

    Return true if x satisfies IVector

  • volatile?

    Returns true if x is a volatile.

  • zero?

    Returns true if num is zero, else false