ui.js
/**
     * Returns the current location parsed in an array.
     * @returns {string[]} - Array containing the current URL path
    */
Returns the current location parsed in an array.
@returns {string[]} - Array containing the current URL path
Returns the current location parsed in an array . @returns { string [] } - Array containing the current URL path
section() {
        var location = window.location.pathname.substring(1).split("/");
        if (location[location.length - 1] === "") {
            location.pop();
        }
        return location;
    }
section ( ) { var location = window . location . pathname . substring ( 1 ) . split ( "/" ) ; if ( location [ location . length - 1 ] === "" ) { location . pop ( ) ; } return location ; }
Returns the current location parsed in an array.
Returns the current location parsed in an array .