joinPath = array =>
  array.reduce(
    (string, item) =>
      string + (
        Number.isNaN(Number(item))
          ? `${string === '' ? '' : '.'}${item}`
          : `[${item}]`
      ),
    '',
  )
Joins a path in array format into a string.

@param {[string|number]} array
 Path in array format
@return {String}