Created
November 28, 2011 16:04
-
-
Save kitek/1400902 to your computer and use it in GitHub Desktop.
Zliczanie elementów w obiekcie JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var obiekt = {'1':'ala','2':'basia','3':'zosia'}; | |
var ile = Object.keys(obiekt).length; | |
console.log(ile); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment