• A one line solution to checking if an object is undefined or null that asserts this so that strict compilers flag the variable as potentially undefined or null.

    Type Parameters

    • T

    Parameters

    • object: T

      The object that should be checked if it is undefined or null.

    • message: string = undefined

    Returns asserts object is T

MMNEPVFCICPMFPCPTTAAATR