• Returns an object that lazily represents a property with the name within the treespace (or document). Getting properties returns the property in the specified element and setting or deleting properties updates or deletes the property correspondingly.

    Parameters

    • name: string
    • Optional treespace: Element

    Returns any

    Example

    import { member } from 'deleight/proxy/selector';
    document.body.innerHTML = `
    <div>I am a div</div>
    <p>I am a paragraph</p>
    <section>I am a section</section>
    <article>I am an article</article>
    `;
    const slct = member('textContent', document.body);
    console.log(slct.div); // I am a div