public/subjects/get
davhojt 9f4f34f281 docs(get): correct grammar 2022-05-31 08:27:51 +02:00
..
README.md docs(get): correct grammar 2022-05-31 08:27:51 +02:00

README.md

Get

Instructions

Create a function named get which takes two arguments:

  • src: an object.
  • path: a string representing a path.

Your function will return the value at the given path in the src object.

Example:

const src = { nested: { key: 'peekaboo' } }
const path = 'nested.key'
get(src, path) // -> 'peekaboo'