UNPKG
documon
Version:
latest (2.5.5)
2.5.5
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A documentation system for mortals. Use with any language.
www.documon.net
bobtherobot/documon
documon
/
more
/
200.Comment Authoring Guide
/
10.Optional Values.md
11 lines
(5 loc)
•
252 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
#
Optional
Values
To
define
properties
or
method
parameters
as
optional
,
wrap
the
name
with
quare
brackets
. @
prop
{
object
}
[foo]
When
the property has a default value, keep the value within the square brackets as well
@prop
{
object
}
[foo=
"bar"
]