---
title: "Discussion on \"Use dig method to get value from deeply nested key\" | Hashnode"
description: "Discussion on \"Use dig method to get value from deeply nested key\". Learn how to extracts the nested value specified by the sequence of key objects by calling dig at each step, returning nil if any intermediate step is nil.\nExample data\nLets say we have following Hash to work on, this can be a rails params object or ..."
url: "https://hashnode.com/posts/use-dig-method-to-get-value-from-deeply-nested-key/64226b71a3c2ab85c4430068"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Use dig method to get value from deeply nested key](https://blog.przbadu.dev/use-dig-method-to-get-value-from-deeply-nested-key?utm_source=hashnode&utm_medium=feed)

Learn how to extracts the nested value specified by the sequence of key objects by calling dig at each step, returning nil if any intermediate step is nil. Example data Lets say we have following Hash to work on, this can be a rails params object or ...

Jan 9, 2022 · 1 min read · blog.przbadu.dev  
Read the article

## Written by

[Pushpa Raj Badu](https://hashnode.com/@przbadu)

@przbadu

  
[View profile](https://hashnode.com/@przbadu)

Fullstack web developer

I am a full-stack Ruby on Rails developer with experience in PostgreSQL, Docker, Heroku, and performance optimization. I love exploring new technology stacks and have recently developed an interest in mobile app development using Flutter. My skills in test-driven development and fixing security vulnerabilities have helped me deliver high-quality, reliable code. I am also currently learning about machine learning and its applications in real-world problem-solving. I bring a unique combination of technical expertise, creative problem-solving, and a passion for learning to any team. I am committed to delivering elegant and efficient software solutions and excited to contribute to an innovative and dynamic team that shares this vision.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
