Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 301 Bytes

array_is_empty.sh.md

File metadata and controls

19 lines (15 loc) · 301 Bytes

array_is_empty

array_is_empty -- Checks if an array is empty.

array_is_empty returns true iff a given array is empty.

Usage

// 1. Command form.
bool sub::array_is_empty(string[]* variable)

Example

array=()
if sub::array_is_empty array; then
  echo 'array is empty.'
fi