# ally.is.shadowed
Determines if an element is the descendant of a ShadowRoot.
# Usage
var element = document.getElementById('victim');
var isShadowed = ally.is.shadowed(element);
# Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| element | HTMLElement |
required | The Element to test. |
# Returns
Boolean, true if the element is hosted in a ShadowRoot.
# Throws
TypeError if element argument is not of type HTMLElement.
# Notes
Requires ShadowDOM support.