Function getElement

  • Extracts the first Element if Possible, which includes the Operand

    Example

    const a = [{path:'hallo'}, {path:'hallo2'}]
    const res = getElement(a, 'hallo2', 'path') // => {path:'hallo2'}

    Export

    Returns

    Type Parameters

    • T

    Parameters

    • list: T[]

      The list which is considered

    • operand: any

      The Element which should looked for

    • Optional path: string = ""

      The where the Element should be found

    Returns T | null

Generated using TypeDoc