SHARE
TWEET

Untitled

a guest Jun 16th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getNewArray(){
  2. const newArray = []
  3. const = this.data.map(item =>{
  4.     for(let i in item){
  5.        newArray.push(item.value)
  6.   }
  7. return newArray
  8. })
  9. }
  10.      
  11. data:[
  12.     [
  13.     {idStatus: 2, value: '120'},
  14.     {idStatus: 3, value: '130'},
  15.     {idStatus: 4, value: '140'},
  16.     {idStatus: 5, value: '150'}
  17.     ],
  18.     [
  19.     {idStatus: 1, value: '160'},
  20.     {idStatus: 2, value: '180'},
  21.     {idStatus: 4, value: '10'},
  22.     {idStatus: 5, value: '20'}
  23.     ],
  24.     [
  25.     {idStatus: 3, value: '567'},
  26.     {idStatus: 6, value: '234'},
  27.     {idStatus: 9, value: '747'},
  28.     {idStatus: 7, value: '789'}
  29.     ],
  30.     [
  31.     {idStatus: 8, value: '340'},
  32.     {idStatus: 5, value: '560'},
  33.     {idStatus: 6, value: '120'},
  34.     {idStatus: 2, value: '100'}
  35.     ],
  36.     [
  37.     {idStatus: 1, value: '106'},
  38.     {idStatus: 5, value: '345'},
  39.     {idStatus: 7, value: '756'},
  40.     {idStatus: 9, value: '946'}
  41.     ]
  42.     ]
  43.      
  44. data:[
  45.     [120,130,140,150],
  46.     [160,180,10,20],
  47.     [567,234,747,789],
  48.     [340,560,120,100],
  49.     [106,345,756,946]
  50.     ]
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top