Skip to content

Instantly share code, notes, and snippets.

@salami-art
Last active August 29, 2015 14:12
Show Gist options
  • Save salami-art/263118ff3e9a5a065fd5 to your computer and use it in GitHub Desktop.
Save salami-art/263118ff3e9a5a065fd5 to your computer and use it in GitHub Desktop.
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);
}
}
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
{"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