Chok’s Typescript Utilities
    Preparing search index...

    Function nonNil

    • Type asserts that t is neither null nor undefined. Throws an error if t is null or undefined.

      Type Parameters

      • T

      Parameters

      • t: undefined | null | T
      • varName: string = "value"

        The variable name to include in the error to throw when t is nil. Defaults to 'value'.

      Returns T