Ox.identify: update examples
This commit is contained in:
parent
b7129af1b4
commit
cbe8f1db49
1 changed files with 9 additions and 3 deletions
|
@ -475,14 +475,20 @@ Ox.doc = (function() {
|
||||||
/*@
|
/*@
|
||||||
Ox.identify <f> Returns the type of a JavaScript identifier
|
Ox.identify <f> Returns the type of a JavaScript identifier
|
||||||
(string) -> <s> Type
|
(string) -> <s> Type
|
||||||
Type can be `constant`, `identifier`, `keyword`, `method`, `object` or
|
Type can be `'constant'`, `'identifier'`, `'keyword'`, `'method'`,
|
||||||
`property`.
|
`'object'` or `'property'`.
|
||||||
|
> Ox.idenfify('PI')
|
||||||
|
'constant'
|
||||||
> Ox.identify('foo')
|
> Ox.identify('foo')
|
||||||
'identifier'
|
'identifier'
|
||||||
> Ox.identify('break')
|
> Ox.identify('for')
|
||||||
'keyword'
|
'keyword'
|
||||||
|
> Ox.identify('forEach')
|
||||||
|
'method'
|
||||||
> Ox.identify('window')
|
> Ox.identify('window')
|
||||||
'object'
|
'object'
|
||||||
|
> Ox.identify('prototype')
|
||||||
|
'property'
|
||||||
@*/
|
@*/
|
||||||
Ox.identify = (function() {
|
Ox.identify = (function() {
|
||||||
// see https://developer.mozilla.org/en/JavaScript/Reference
|
// see https://developer.mozilla.org/en/JavaScript/Reference
|
||||||
|
|
Loading…
Reference in a new issue