mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40: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:
|
||||
|
||||
- `object.STOP`
|
||||
This will make `sources(..)` stop and return the `<list>` including
|
||||
the object that triggered the _stop_.
|
||||
This will make `sources(..)` stop and return the `<list>` up to and
|
||||
including the object that triggered the _stop_.
|
||||
- `undefined`
|
||||
Return the object triggering `callback(..)` in `<list>` as-is.
|
||||
Add the object triggering `callback(..)` in `<list>` as-is and continue.
|
||||
- array
|
||||
The containing values will be merged into the result list. This is a
|
||||
way to either skip an object by returning `[]` or multiple values
|
||||
instead of one.
|
||||
The containing values will be merged into the result list and continue.
|
||||
This is a way to either skip an object by returning `[]` or multiple
|
||||
values instead of one.
|
||||
- `<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(..)`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user