findByID(id)

Class: Tree.

Description:

Finds items whose id property matches the argument. Returns an array of found items.

Parameters:

Name Type Description

id

string | number

Value of item's id property to match when finding items.

Returns:

Returns an array of found items.

Type: Array.<object>