import _ from 'lodash'

export function getNested<T = any>(obj: any, path: string, fallack: T): T {
  return _.get<T>(obj, path, fallack)
}

import _ from 'lodash'

export function getNested<T = any>(obj: any, path: string, fallback: T): T {
  return _.get<T>(obj, path, fallback)
}

Correct spelling of 'fallack' to 'fallback' in getNested
Correct spelling of 'fallack' to 'fallback' in getNested
