Guest User

Untitled

a guest
Aug 16th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. How would I convert this to a multi-dimensional array in javascript?
  2. var table = {
  3. "STAT": [ false, false, false, true, true, false ]
  4. // etc.
  5.  
  6. [
  7. [ 'PATIENT_RESULT_IN_RANGE', [ 1, 0, 1 ] ],
  8. [ 'QC_RESULT_IN_RANGE', [ 1, , 0, 1 ] ],
  9. [ 'QC_DUE', [ 0, , , 1, 1, 1 ] ]
  10. // ect.
  11. ]
  12.  
  13. {
  14. 'PATIENT_RESULT_IN_RANGE': [ 1, 0, 1 ],
  15. 'QC_RESULT_IN_RANGE': [ 1, , 0, 1 ],
  16. 'QC_DUE': [ 0, , , 1, 1, 1 ]
  17. // ect.
  18. }
Add Comment
Please, Sign In to add comment