SHARE
TWEET

Untitled

a guest Jun 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const transformedResponse = transformResponse(response);
  2.   const loggerResponse = transformedResponse.map(
  3.       ({drugName, mailPrice.copayEmployer, ...rest}) => rest
  4.   );
  5.      
  6. [{
  7.         "isBrand": true,
  8.         "drugName": "Lipitor",
  9.         "drugStrength": "80 mg",
  10.         "drugForm": "Tablet",
  11.         "mailPrice": {
  12.             "copayEmployer": 0
  13.         }
  14.     }, {
  15.         "isBrand": true,
  16.         "drugName": "Metformin",
  17.         "drugStrength": "500 mg",
  18.         "drugForm": "Tablet",
  19.         "mailPrice": {
  20.             "copayEmployer": 50
  21.         }
  22.     }
  23.  
  24. ]
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