title: Returning an object from JQuery.each() in JavaScript
body: <p>I have this code in JavaScript</p>
  
  <pre><code>lastUpdated: 1492665454,
    items:
  
    [
      $.each(objectStory, function(key, value) {
        //key + ": " + value ;
        //console.log(value)
        console.log(JSON.stringify(value));
        //document.write(sitem);
  
        return JSON.stringify(value);
      }),
    ]
  
  }]
  </code></pre>
  
  <p>the console.log is print the object as I wanted but the return function doesn't work. the data came from json file using ajax call .
  this is the return of consolg log </p>
  
  <pre><code>{"id":"87","type":"image","src":"url/IMG_2363.MOV"}
  </code></pre>
  
  <p>any help will be appreciated  </p>