getTrackedInstances = function(instances) {

	return instances.filter((instance) => instance != null && instance.getData().track)

}
Returns all tracked instances from an array.
@param {Array} instances
@returns {Array} instances - Tracked instances.