Function isNonEmptyArray

  • Verify the validity of a non-empty array.

    Usage:

    const ret = isNonEmptyArray([1, 2, 3]);
    console.log(ret);

    Output:

    true
    

    Type Parameters

    • T

    Parameters

    • arr: T[]

    Returns boolean