Namespace: domUtil
@atomic-testing/core.domUtil
Functions
isParent
▸ isParent(assumptiveParent
, el
): boolean
Return whether assumptiveParent is indeed parent of el
Parameters
Name | Type |
---|---|
assumptiveParent | Element |
el | Element |
Returns
boolean
Defined in
packages/core/src/utils/domUtil.ts:39
removeAllChildren
▸ removeAllChildren(elements
): Element
[]
Go through the array of elements, and remove any element detected to be descendant of one of the elements of the array.
Parameters
Name | Type |
---|---|
elements | Element [] |
Returns
Element
[]
A new array of elements which don't have any ascendant/descendant relationships.