typescript length of array of type code example Example: size of array typescript console.log(clothing.length);