function permission2mode (arr) {
  return arr.reduce((prev, { permission }) => {
    return prev + permission2digit(permission)
  }, '')
}
permission to mode
@param {array} arr
@return {string} eg, '644'