function getEventListenerDataArray( element, capture ) {
	const map = capture
		? eventCaptureMap
		: eventMap;

	if ( map.has( element ) ) {
		return map.get( element );
	}

	const listeners = [];
	map.set( element, listeners );

	return listeners;
}
@param {Element} element
@param {boolean?} capture
@returns {EventListenerData[]}