daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function episodeParser({
  2.   id,
  3.   title,
  4.   description = 'No summary',
  5.   optionalField,
  6.   anotherOptionalField
  7. }) {
  8.   return {
  9.     guid: id,
  10.     title,
  11.     summary: description,
  12.     ...(optionalField && {optionalField}),
  13.     ...(anotherOptionalField && {anotherOptionalField})
  14.   }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top