const exampleArray = ['aa','bbc','ccdd']; console.log(exampleArray.map(a => a.length)); //Would print out [2,3,4]
materials.map((str) => { const {length} = str; return length; });