Recently, I've been utilizing a code snippet to verify the value of an input field located at index:1 within an array. The code looks like this:
const inputValue=journeyData && journeyData.birthdate && journeyData.birthdate[0]
? journeyData.birthdate[0]
: null,
I am now curious if there is a lodash alternative that can achieve the same outcome more succinctly?