Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. const arr1 = ["Saab", "Volvo", "BMW", "SUV", "Car3", "Van", "Bus"];
  2. const arr2 = [
  3. {
  4. name: "Saab",
  5. url: "saab/"
  6. },
  7. {
  8. name: "Volvo",
  9. url: "volvo/",
  10. children:[
  11. {
  12. name: "Van",
  13. url: "van/"
  14. },
  15. {
  16. name: "Bus",
  17. url: "bus/"
  18. },
  19. ]
  20. },
  21. {
  22. name: "BMW",
  23. url: "bmw/"
  24. },
  25. {
  26. name: "SUV",
  27. url: "suv/",
  28. children:[
  29. {
  30. name: "Car1",
  31. url: "car1/"
  32. },
  33. {
  34. name: "Car2",
  35. url: "car2/"
  36. },
  37. {
  38. name: "Car3",
  39. url: "car3/"
  40. },
  41. ]
  42. }
  43. ]
  44.  
  45. [
  46. {
  47. name: "Saab",
  48. url: "saab/"
  49. },
  50. {
  51. name: "Volvo",
  52. url: "volvo/",
  53. children:[
  54. {
  55. name: "Van",
  56. url: "van/"
  57. },
  58. {
  59. name: "Bus",
  60. url: "bus/"
  61. },
  62. ]
  63. },
  64. {
  65. name: "BMW",
  66. url: "bmw/"
  67. },
  68. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement