PHP Class Ublaboo\DataGrid\Utils\ArraysHelper

Inheritance: extends Nette\Object
Show file Open project: ublaboo/datagrid Class Usage Examples

Public Methods

Method Description
testEmpty ( array $array ) : boolean Test recursively whether given array is empty
testTruthy ( array | Traversable $a ) : boolean Is array and its values truthy?

Method Details

testEmpty() public static method

Test recursively whether given array is empty
public static testEmpty ( array $array ) : boolean
$array array
return boolean

testTruthy() public static method

Is array and its values truthy?
public static testTruthy ( array | Traversable $a ) : boolean
$a array | Traversable
return boolean