Function getOption

  • Return opts.NAME if opts is valid and

    Parameters

    • opts: any

      dict, object, or null

    • name: string

      option name (use dot notation to access extension option, e.g. filter.mode)

    • defaultValue: any = undefined

      returned when opts is not an object, or does not have a NAME property

    Returns any