const rules = {
user1: '*',
user2: '* !PATH.ADMIN_PAGE !PATH.PAGE_1',
user3: 'PATH.HOME PATH.CABINET_PAGE PATH.LOGIN PATH.PAGE_1',
}
которые затем трансформировать в выходной объект допустимых путей, или guard с методом типа isAllowed(user, path)
getElementsByClassName()
. "12.,34"
– как поступать предлагаете? The bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.
Return value
A copy of the given function with the specified this value, and initial arguments (if provided).