export function isInBody ( el ) { if ( ! el ) return false ; const bodyChildren = document . body . childNodes ; let isExist = false ; for ( let i = bodyChildren . length ; i >= 0 ; i -- ) { if ( bodyChildren [ i ] === el ) { isExist = true ; break ; } } return isExist ; }