Question: Given an object, a key, and numerical index, write a function that returns the value of the element at the given index of the array
Given an object, a key, and numerical index, write a function that returns the value of the element at the given index of the array located within the given object at the given key.If the array is empty, it should return undefined.If the given index is out of range of the array located at the given key, it should return undefined.If the property at the given key is not an array, it should return undefined.If there is no property at the key, it should return undefined.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
