github.com/outbrain/consul@v1.4.5/ui-v2/app/utils/isFolder.js (about)

     1  // Boolean if the key is a "folder" or not, i.e is a nested key
     2  // that feels like a folder.
     3  export default function(path = '') {
     4    return path.slice(-1) === '/';
     5  }