I have an object called this.props that contains
{ actions: Object, dirty: false, form: "Statement", autofill: functon(), **statement: Object** }
statement contains
{ firstName: "John" lastName: "Peter" isConfirmed: true }
I would like to highlight the statement object and the isConfirmed property on the same line using es6 destructuring
I tried
const { statement: isConfirmed, isAdmin } = this.props
which i get when i do let a = isConfirmed, b = statement
source share