Exists

public struct Exists: Fn

Exists returns boolean true if the provided ref exists (in the case of an instance), or is non-empty (in the case of a set), and false otherwise.

Reference.

  • Declaration

    Swift

    public init(_ ref: Expr, ts: Expr? = nil)

    Parameters

    ref

    Ref value to check if exists.

    ts

    Existence of the ref is checked at given time.