Tempo API
    Preparing search index...

    Function isSandbox

    • Checks if the given value carries the Tempo Sandbox brand. The brand key is a global Symbol.for key, so any object that sets it also passes. Do not use this check alone to validate untrusted input. Uses brand checking via the $Sandbox symbol.

      Type Parameters

      • T = any

      Parameters

      • Optionalsandbox: any

        The value to check

      Returns sandbox is T

      True if the value is a Tempo sandbox instance or subclass

      if (isSandbox(value)) {
      // value is narrowed
      }