src/vs/workbench/api/common/extHostTerminalService.ts/BaseExtHostTerminalService/_getTerminalObjectIndexById
class BaseExtHostTerminalService:	private _getTerminalObjectIndexById<T extends ExtHostTerminal>(array: T[], id: TerminalIdentifier): number | null {
		let index: number | null = null;
		array.some((item, i) => {
			const thisId = item._id;
			if (thisId === id) {
				index = i;
				return true;
			}
			return false;
		});
		return index;
	}