Capy-Bearer Documentation

Test for a container

lib call

Capy

function is_array(value : any) bool

Description

is_array(value) returns true when a value is a map or list.

Parameters

value : value to test

Return Values

true for a map or list.

Example

Capy

print(is_array({"name": "Ada"}), "\n")

Output

true