Skip to content

Instantly share code, notes, and snippets.

@ryanmr
Created January 28, 2016 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanmr/c0d09219a5177832545b to your computer and use it in GitHub Desktop.
Save ryanmr/c0d09219a5177832545b to your computer and use it in GitHub Desktop.
// size, length, type, mime, url, id
var media_allowed = ['size', 'length', 'type', 'mime', 'url', 'id'];
data.media = episode.media.map((o) => {
var m = {id: o.id, length: o.length, type: o.type, mime: o.mime, url: o.url};
return m;
});
// what was I thinking when I wrote this three months ago?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment