Chacha
Chacha

Reputation: 441

JSDoc for array of array of Objects

I wanted to represent an array of array of Object in JSDoc comment but I get syntax error in JSDoc when running lint.

This is what I am trying :-

{Object[][]}

Can someone tell me how can I write it in JSDoc comment?

Upvotes: 0

Views: 480

Answers (1)

Jeff McMahan
Jeff McMahan

Reputation: 1323

Use the angle bracket notation for multidimensional arrays, like so:

Object.<Array[]>

Upvotes: 1

Related Questions