function extractPath(url) {
  var urlParts = url.split('/'),
    i = 0,
    l = urlParts.length,
    result = [];
  for (; i < l; ++i) {
    if (urlParts[i].length > 0) {
      result.push(urlParts[i]);
    }
  }
  return result;
}
// splits url by "/" deliminator and removes empty entries
splits url by "/" deliminator and removes empty entries
splits url by " / " deliminator and removes empty entries
function extractPath(url) {
  var urlParts = url.split('/'),
    i = 0,
    l = urlParts.length,
    result = [];
  for (; i < l; ++i) {
    if (urlParts[i].length > 0) {
      result.push(urlParts[i]);
    }
  }
  return result;
}
function extractPath ( url ) { var urlParts = url . split ( '/' ) , i = 0 , l = urlParts . length , result = [ ] ; for ( ; i < l ; ++ i ) { if ( urlParts [ i ] . length > 0 ) { result . push ( urlParts [ i ] ) ; } } return result ; }
splits url by "/" deliminator and removes empty entries
splits url by " / " deliminator and removes empty entries