WordPress at a glance
function is not described

rest_is_array() WP 5.5.0

Determines if a given value is array-like.

No Hooks.

Return

true|false. Nothing.

Usage

rest_is_array( $maybe_array );
$maybe_array(mixed) (required)
The value being evaluated.

Changelog

Since 5.5.0 Introduced.

Code of rest_is_array() WP 5.7.2

<?php
function rest_is_array( $maybe_array ) {
	if ( is_scalar( $maybe_array ) ) {
		$maybe_array = wp_parse_list( $maybe_array );
	}

	return wp_is_numeric_array( $maybe_array );
}