Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/headless-content-unblocker/src/utils/parents"

Index

Functions

Functions

parents

  • parents(element: HTMLElement, selector: string, limit?: number): HTMLElement[]
  • Port of jQuery.parents().

    Parameters

    • element: HTMLElement
    • selector: string

      Use undefined to get all parents

    • Default value limit: number = 0

    Returns HTMLElement[]

Generated using TypeDoc