Premium

Implement lodash.get

By FrontendAtlas Team · Updated Jan 31, 2026

Implement get(obj, path, defaultValue) where path is a string like user.profile.name or a[0].b. Return defaultValue when the path does not exist.

Challenge preview

Implement lodash.get: Implement get(obj, path, defaultValue) where path is a string like user.profile.name or a[0].b. Return defaultValue when the path does not exist. Expect objects and parsing decisions under intermediate level constraints.

Premium unlocks

  • Full editor workflow with starter files, tests, and solution context.
  • Edge cases, common mistakes, and complexity notes for the interview discussion.
  • Progress tracking once you unlock and complete the challenge.

Free warm-up options

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.