Object length in javascript? [duplicate] June 5, 2023 by Tarik You could try the following: Object.keys(customer).length