Strophe.js
    Preparing search index...

    Function forEachChild

    • Map a function over some or all child elements of a given element.

      This is a small convenience function for mapping a function over some or all of the children of an element. If elemName is null, all children will be passed to the function, otherwise only children whose tag names match elemName will be passed.

      Parameters

      • elem: Element

        The element to operate on.

      • elemName: string

        The child element tag name filter.

      • func: (child: Element) => void

        The function to apply to each child. This function should take a single argument, a DOM element.

      Returns void

      Strophe.forEachChild