CBA_fnc_hashSize

Description

Get number of elements in a Hash.

Parameters

_hashHash to check size of [Array which is a Hash structure]

Returns

Size of the Hash or -1 if the argument is not a Hash [Number]

Examples

_emptyHash = [] call CBA_fnc_hashCreate;
[_emptyHash] call CBA_fnc_hashSize; // => 0

_animalCounts = [[["frog", 12], ["fish", 9]]] call CBA_fnc_hashCreate;
[_animalCounts] call CBA_fnc_hashSize; // => 2

Author

Killswitch

Close