Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json object length in javascript

const data = { a : 'b', c : 'd' };

const length = Object.keys(data).length;

//Length is 2
 
PREVIOUS NEXT
Tagged: #json #object #length #javascript
ADD COMMENT
Topic
Name
4+5 =