• Parameters

    • props: string[]

      array of strings; can use dot notation for two level lookup

    • src: Record<string, unknown>

      source of attributes to check

    Returns Record<string, null | string | number>

    reduceToObject - goes one to two levels into source to collect attribute