window-combination-p

window-combination-p is a compiled Lisp function in `window.el'.

(window-combination-p &optional WINDOW HORIZONTAL)

Return WINDOW's first child if WINDOW is a vertical combination.
WINDOW can be any window and defaults to the selected one.
Optional argument HORIZONTAL non-nil means return WINDOW's first
child if WINDOW is a horizontal combination.