SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const assets: number[] = [];
  2. const sales: number[] = [];
  3. const marketCap: number[] = [];
  4.  
  5. const wCapToTotalAssel: number[] = [];
  6. const currentRatio: number[] = [];
  7. const totalDebtToTotalAssets: number[] = [];
  8.  
  9. const returnOnAssets: number[] = [];
  10. const salesGrowth: number[] = [];
  11.  
  12. companies.forEach((companyData: CompanyData) => {
  13.     assets.push(companyData.prevYear.totalAssets);
  14.     assets.push(companyData.currentYear.totalAssets);
  15.  
  16.     sales.push(companyData.prevYear.revenues);
  17.     sales.push(companyData.currentYear.revenues);
  18.  
  19.     marketCap.push(companyData.currentYear.marketCap);
  20.  
  21.     wCapToTotalAssel.push((companyData.prevYear.totalCurrentAssets - companyData.prevYear.totalCurrentLiabilities) / companyData.prevYear.totalAssets);
  22.     wCapToTotalAssel.push((companyData.currentYear.totalCurrentAssets - companyData.currentYear.totalCurrentLiabilities) / companyData.currentYear.totalAssets);
  23.  
  24.     currentRatio.push(companyData.prevYear.currentRatio);
  25.     currentRatio.push(companyData.currentYear.currentRatio);
  26.  
  27.     totalDebtToTotalAssets.push(companyData.prevYear.debtToAssetRatio);
  28.     totalDebtToTotalAssets.push(companyData.currentYear.debtToAssetRatio);
  29.  
  30.     returnOnAssets.push(companyData.prevYear.returnOnAssets);
  31.     returnOnAssets.push(companyData.currentYear.returnOnAssets);
  32.  
  33.     salesGrowth.push((companyData.currentYear.revenues - companyData.prevYear.revenues) / companyData.prevYear.revenues);
  34. });
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