To.matched.some (function (item) {}

router.beforeEach ((to, from, next) = > {
if (to.matched.some (record = > record.meta.requiresAuth)) {

 
  if (!localStorage.token) { 
    next({
      path: "/login",
      query: { redirect: to.fullPath }
    })
  } else {
    next()
  }
} else {
  next() //  next()
}

})
to.matched.some (record = > record.meta.requiresAuth) what is the meaning of this paragraph? do you know any great gods?

Jul.24,2021

you can take a look at the some method of es6. What this means is that the array of to.matched returns true

if there is requiresAuth in mate.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32a41-2be12.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32a41-2be12.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?