mirror of https://github.com/hashicorp/consul
6 lines
165 B
JavaScript
6 lines
165 B
JavaScript
// Boolean if the key is a "folder" or not, i.e is a nested key
|
|||
// that feels like a folder.
|
|||
export default function(path = '') {
|
|||
return path.slice(-1) === '/';
|
|||
}
|