JSFiddle - React, Tailwind, and code Playground

by Salmin Skenderovic

JavaScript

const target = {
  details: {
   
  }
}



const header = target.details.header;
const {
  to = [],
  cc = [],
  bcc = []
} = header;

console.log(to, cc, bcc)
const count = to.length + cc.length + bcc.length;

console.log(count)