code: function parseTypeArray (type) {
    var tmp = type.match(/(.*)\[(.*?)\]$/)
    if (tmp) {
      return tmp[2] === '' ? 'dynamic' : parseInt(tmp[2], 10)
    }
    return null
  }
docs: Parse N in type[<N>] where "type" can itself be an array type.