I do not know which style guide we follow anymore ;( ;) In terms of the second one, the length is the length of the array.

    paths = fullPath.split('/'),
    splitPathLength = paths.length