-
-
Save salami-art/263118ff3e9a5a065fd5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 images = gallery.images; | |
for (var i = 0; i < images.length; i++ ) | |
{ | |
console.log(JSON.stringify(images[i])); | |
for (var key in images[i]) | |
{ | |
(function (key) { | |
if (images[i].hasOwnProperty(key)) | |
{ | |
console.log(key); | |
} | |
})(key); | |
} | |
} |
This file contains hidden or 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
schema : { | |
title : String, | |
image : { | |
original : String, | |
large : String, | |
medium : String, | |
small : String, | |
folder : String | |
}, | |
images : [ | |
{ | |
id : String, | |
original : String, | |
large : String, | |
medium : String, | |
small : String | |
} | |
], | |
creationDate : Date |
This file contains hidden or 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
{"small":"/uploads/2014-11/31/181554/_DSC7249bis-small.jpg","medium":"/uploads/2014-11/31/181554/_DSC7249bis-medium.jpg","large":"/uploads/2014-11/31/181554/_DSC7249bis-large.jpg","original":"/uploads/2014-11/31/181554/_DSC7249bis.jpg","id":"1420046154887","_id":"54a42f502e1dcc0000000003"} | |
__parentArray | |
__parent | |
_events | |
_maxListeners | |
_strictMode | |
_selected | |
isNew | |
errors | |
_shardval | |
_saveError | |
_validationError | |
_adhocPaths | |
_removing | |
_inserting | |
__version | |
__getters | |
__id | |
_activePaths | |
_doc | |
_pres | |
_posts | |
save | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment