Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const arr1 = ["Saab", "Volvo", "BMW", "SUV", "Car3", "Van", "Bus"];
- const arr2 = [
- {
- name: "Saab",
- url: "saab/"
- },
- {
- name: "Volvo",
- url: "volvo/",
- children:[
- {
- name: "Van",
- url: "van/"
- },
- {
- name: "Bus",
- url: "bus/"
- },
- ]
- },
- {
- name: "BMW",
- url: "bmw/"
- },
- {
- name: "SUV",
- url: "suv/",
- children:[
- {
- name: "Car1",
- url: "car1/"
- },
- {
- name: "Car2",
- url: "car2/"
- },
- {
- name: "Car3",
- url: "car3/"
- },
- ]
- }
- ]
- [
- {
- name: "Saab",
- url: "saab/"
- },
- {
- name: "Volvo",
- url: "volvo/",
- children:[
- {
- name: "Van",
- url: "van/"
- },
- {
- name: "Bus",
- url: "bus/"
- },
- ]
- },
- {
- name: "BMW",
- url: "bmw/"
- },
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement