Skip to content

Instantly share code, notes, and snippets.

View sridharanirudh's full-sized avatar
🏠
Working from home

Anirudh Sridhar sridharanirudh

🏠
Working from home
  • United States
View GitHub Profile
// Hash Object Utils
export const isObject = (obj) => (return obj === Object(obj)) // https://stackoverflow.com/a/14706877
export const getIn = (obj, arr) => (arr.reduce((data, key) => (data && data[key] || null), obj))