@@ -29,7 +29,7 @@ The `composer` module offers a number of combinators to define compositions:
29
29
| [ ` dynamic ` ] ( #dynamic ) | dynamic invocation | ` composer.dynamic() `
30
30
| [ ` empty ` ] ( #empty ) | empty sequence | ` composer.empty() `
31
31
| [ ` finally ` ] ( #finally ) | finalization | ` composer.finally('tryThis', 'doThatAlways') ` |
32
- | [ ` function ` ] ( #function ) | Javascript function | ` composer.function(({ x, y }) => ({ product: x * y })) ` |
32
+ | [ ` function ` ] ( #function ) | JavaScript function | ` composer.function(({ x, y }) => ({ product: x * y })) ` |
33
33
| [ ` if ` and ` if_nosave ` ] ( #if ) | conditional | ` composer.if('authenticate', 'success', 'failure') ` |
34
34
| [ ` let ` ] ( #let ) | variable declarations | ` composer.let({ count: 3, message: 'hello' }, ...) ` |
35
35
| [ ` literal ` or ` value ` ] ( #literal ) | constant value | ` composer.literal({ message: 'Hello, World!' }) ` |
@@ -46,7 +46,7 @@ The `composer` module offers a number of combinators to define compositions:
46
46
| [ ` while ` and ` while_nosave ` ] ( #while ) | loop | ` composer.while('notEnough', 'doMore') ` |
47
47
48
48
The ` action ` , ` function ` , and ` literal ` combinators construct compositions
49
- respectively from OpenWhisk actions, Javascript functions, and constant values.
49
+ respectively from OpenWhisk actions, JavaScript functions, and constant values.
50
50
The other combinators combine existing compositions to produce new compositions.
51
51
52
52
## Shorthands
@@ -110,7 +110,7 @@ composer.action('hello', { filename: 'hello.js' })
110
110
composer .action (' helloAndBye' , { sequence: [' hello' , ' bye' ] })
111
111
```
112
112
The action may be defined by providing the code for the action as a string, as a
113
- Javascript function, or as a file name. Alternatively, a sequence action may be
113
+ JavaScript function, or as a file name. Alternatively, a sequence action may be
114
114
defined by providing the list of sequenced actions. The code (specified as a
115
115
string) may be annotated with the kind of the action runtime.
116
116
@@ -128,7 +128,7 @@ The `limits` object optionally specifies any combination of:
128
128
129
129
### Environment capture in actions
130
130
131
- Javascript functions used to define actions cannot capture any part of their
131
+ JavaScript functions used to define actions cannot capture any part of their
132
132
declaration environment. The following code is not correct as the declaration of
133
133
` name ` would not be available at invocation time:
134
134
``` javascript
@@ -144,7 +144,7 @@ composer.action('hello', { action: `function main() { return { message: 'Hello '
144
144
145
145
## Function
146
146
147
- ` composer.function(fun) ` is a composition with a single Javascript function
147
+ ` composer.function(fun) ` is a composition with a single JavaScript function
148
148
_ fun_ . It applies the specified function to the input parameter object for the
149
149
composition.
150
150
- If the function returns a value of type ` function ` , the composition returns
@@ -313,7 +313,7 @@ if not.
313
313
A _ condition_ composition evaluates to true if and only if it produces a JSON
314
314
dictionary with a field ` value ` with value ` true ` . Other fields are ignored.
315
315
Because JSON values other than dictionaries are implicitly lifted to
316
- dictionaries with a ` value ` field, _ condition_ may be a Javascript function
316
+ dictionaries with a ` value ` field, _ condition_ may be a JavaScript function
317
317
returning a Boolean value. An expression such as ` params.n > 0 ` is not a valid
318
318
condition (or in general a valid composition). One should write instead `params
319
319
=> params.n > 0`. The input parameter object for the composition is the input
0 commit comments