isNotEmpty

Ensures that an array is not empty.

  1. Arg!T isNotEmpty(Arg!T arg)
    Arg!T
    isNotEmpty
    (
    T
    )
    ()
    if (
    isArray!T
    )
  2. Arg!T isNotEmpty(Arg!T arg)

Parameters

arg Arg!T

A wrapped argument, obtained with ensure.

Throws

EnsureException when validation fails.

See Also

ensure

Meta

Authors

Tony J. Hudgins