fixed typos
parent
03b7526e89
commit
86f87f26ba
|
@ -79,7 +79,7 @@ The `filter()` function has one parameter, `fn`, which expects an anonymous func
|
|||
with logic that filters data based on columns or attributes.
|
||||
|
||||
Flux's anonymous function syntax is similar to Javascript's.
|
||||
Records or rows are passed into the `filter()` function as an record (`r`).
|
||||
Records or rows are passed into the `filter()` function as a record (`r`).
|
||||
The anonymous function takes the record and evaluates it to see if it matches the defined filters.
|
||||
Use the `and` relational operator to chain multiple filters.
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ this is a string
|
|||
```
|
||||
|
||||
### Records
|
||||
Flux also supports records. Each value in an record can be a different data type.
|
||||
Flux also supports records. Each value in a record can be a different data type.
|
||||
|
||||
```js
|
||||
> o = {name:"Jim", age: 42, "favorite color": "red"}
|
||||
|
|
|
@ -109,7 +109,7 @@ _**Data type:** Array of strings_
|
|||
|
||||
### fieldFn
|
||||
Function that takes a record from the input table and returns a record.
|
||||
For each record from the input table, `fieldFn` returns an record that maps the
|
||||
For each record from the input table, `fieldFn` returns a record that maps the
|
||||
output field key to the output value.
|
||||
Default is `(r) => ({ [r._field]: r._value })`
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ Make sure `fn` parameter names match each specified parameter. To learn why, see
|
|||
### fn
|
||||
|
||||
A single argument function to apply to each record.
|
||||
The return value must be an record.
|
||||
The return value must be a record.
|
||||
|
||||
_**Data type:** Function_
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ Requires an `r` parameter.
|
|||
|
||||
_**Data type:** Function_
|
||||
|
||||
`mapFn` accepts a table row (`r`) and returns an record that must include the
|
||||
`mapFn` accepts a table row (`r`) and returns a record that must include the
|
||||
following field:
|
||||
|
||||
- `content`
|
||||
|
|
Loading…
Reference in New Issue