forked from 0x2620/oxjs
misc. minor changes and documentation updates
This commit is contained in:
parent
92d4b032da
commit
abfea74565
8 changed files with 102 additions and 30 deletions
|
|
@ -597,6 +597,8 @@ Ox.some <f> Tests if one or more elements of a collection satisfy a given condit
|
|||
true
|
||||
> Ox.some("foo", function(v) { return v == 'f'; })
|
||||
true
|
||||
> Ox.some([false, 0, null, '', void 0])
|
||||
false
|
||||
@*/
|
||||
Ox.some = function(obj, fn) {
|
||||
return Ox.filter(Ox.values(obj), fn || function(v) {
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ Ox.doc <f> Generates documentation for annotated JavaScript
|
|||
|
||||
(source) <a> Array of documentation objects
|
||||
source <s> JavaScript source code
|
||||
# > Ox.doc("//@ Ox.foo <string> just some string")
|
||||
# [{"name": "Ox.foo", "summary": "just some string", "type": "string"}]
|
||||
> Ox.doc("//@ My.FOO <n> Magic constant\nMy.FOO = 23;")
|
||||
[{"name": "Ox.foo", "summary": "just some string", "type": "string"}]
|
||||
@*/
|
||||
|
||||
Ox.doc = (function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue