I have been using some code to check the value for a input field which is present at index:1 of an array. It is as below
const inputValue=journeyData && journeyData.birthdate && journeyData.birthdate[0]
? journeyData.birthdate[0]
: null,
Is there a lodash replacement for the same thing which makes it shorted to write ?