Simple enough question. I am trying to read the value of the "length" variable inside this array of objects (See Image 1)
MY CODE
const mapStateToProps = (state, ownProps) => {
const lecture = state.firestore.ordered.lectures;
const length = lecture.length;
return {
length: length,
}
}