mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 10:30:08 +00:00
docs tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
889ca7c5da
commit
8011f9f123
15
README.md
15
README.md
@ -484,16 +484,17 @@ The `callback(..)` controls the output of `sources(..)` by returning
|
|||||||
one of the following:
|
one of the following:
|
||||||
|
|
||||||
- `object.STOP`
|
- `object.STOP`
|
||||||
This will make `sources(..)` stop and return the `<list>` including
|
This will make `sources(..)` stop and return the `<list>` up to and
|
||||||
the object that triggered the _stop_.
|
including the object that triggered the _stop_.
|
||||||
- `undefined`
|
- `undefined`
|
||||||
Return the object triggering `callback(..)` in `<list>` as-is.
|
Add the object triggering `callback(..)` in `<list>` as-is and continue.
|
||||||
- array
|
- array
|
||||||
The containing values will be merged into the result list. This is a
|
The containing values will be merged into the result list and continue.
|
||||||
way to either skip an object by returning `[]` or multiple values
|
This is a way to either skip an object by returning `[]` or multiple
|
||||||
instead of one.
|
values instead of one.
|
||||||
- `<value>`
|
- `<value>`
|
||||||
Returned as-is instead of the object triggering `callback(..)`.
|
Add to the resulting `<list>` as-is instead of the object triggering
|
||||||
|
`callback(..)` and continue.
|
||||||
|
|
||||||
|
|
||||||
### `values(..)`
|
### `values(..)`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user