Skip to content

basalt / permissions/src / hasEmptySegment

Function: hasEmptySegment() ​

> hasEmptySegment(permission): boolean

Defined in: permissions/src/match.ts:42

True when permission has no empty segment ('', 'a:', ':b', 'a::b' do).

Parameters ​

permission ​

string

Returns ​

boolean

Released under the MIT License.