[
  {
    name: "123",
    type: "menu",
    children: [{ name: "321", type: "operation", children: null }],
  },
  {
    name: "456",
    type: "menu",
    children: [
      {
        name: "654",
        type: "menu",
        children: [{ name: "546", type: "operation", children: null }],
      },
    ],
  },
];such a set of data
I want to take out all the name of type = "operation" through the map of js. For example, if the data is taken out as above, the result is
.["321","546"]Note: the actual data may be nested in the wireless layer
