• Returns whether the given object is not null or undefined

    Parameters

    • object: any

      the object to check

    Returns boolean

    whether the given object is not null or undefined

    isNotNil('foobar');    // true
    isNotNil([]); // true