code: function stripCommonPath(paths) {
    var prefix = commonPrefix(paths);
    var prefixLength = prefix.lastIndexOf('/') + 1;
  
    return paths.map(function(str) {
      return str.slice(prefixLength);
    });
  }
docs: /*
  Strip common prefix from paths
  @param paths {array}
  @returns {array} - path with remove common part