import { FOCUS_ALLOW } from './constants' ; import { toArray } from './utils/array' ; returns { boolean } export const focusIsHidden = ( ) => document && toArray ( document . querySelectorAll ( `[${ FOCUS_ALLOW }]` ) ) . some ( ( node ) => node . contains ( document . activeElement ) ) ;