You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns an array containing the results of applying the `function` parameter to each value in the `array` parameter.
11
11
12
-
The function that is supplied as the second parameter must have the following signature:
12
+
The function that is supplied as the second parameter must have the following signature:
13
13
14
-
`function(value [, index [, array]])`
15
-
16
-
Each value in the input array is passed in as the first parameter in the supplied function. The index (position) of that value in the input array is passed in as the second parameter, if specified. The whole input array is passed in as the third parameter, if specified.
14
+
`function(value [, index [, array]])`
17
15
18
-
__Examples__
16
+
Each value in the input array is passed in as the first parameter in the supplied function. The index (position) of that value in the input array is passed in as the second parameter, if specified. The whole input array is passed in as the third parameter, if specified.
Returns an array containing only the values in the `array` parameter that satisfy the `function` predicate (i.e. `function` returns Boolean `true` when passed the value).
43
43
44
-
The function that is supplied as the second parameter must have the following signature:
44
+
The function that is supplied as the second parameter must have the following signature:
45
+
46
+
`function(value [, index [, array]])`
45
47
46
-
`function(value [, index [, array]])`
47
-
48
-
Each value in the input array is passed in as the first parameter in the supplied function. The index (position) of that value in the input array is passed in as the second parameter, if specified. The whole input array is passed in as the third parameter, if specified.
48
+
Each value in the input array is passed in as the first parameter in the supplied function. The index (position) of that value in the input array is passed in as the second parameter, if specified. The whole input array is passed in as the third parameter, if specified.
49
49
50
50
__Example__
51
51
The following expression returns all the products whose price is higher than average:
Returns the one and only one value in the `array` parameter that satisfy the `function` predicate (i.e. `function` returns Boolean `true` when passed the value). Throws an exception if the number of matching values is not exactly one.
62
+
63
+
The function that is supplied as the second parameter must have the following signature:
64
+
65
+
`function(value [, index [, array]])`
66
+
67
+
Each value in the input array is passed in as the first parameter in the supplied function. The index (position) of that value in the input array is passed in as the second parameter, if specified. The whole input array is passed in as the third parameter, if specified.
68
+
69
+
__Example__
70
+
The following expression the product in the order whose SKU is `"0406654608"`:
@@ -82,11 +101,11 @@ Returns an object that contains only the key/value pairs from the `object` param
82
101
83
102
If `object` is not specified, then the context value is used as the value of `object`. It is an error if `object` is not an object.
84
103
85
-
The function that is supplied as the second parameter must have the following signature:
104
+
The function that is supplied as the second parameter must have the following signature:
105
+
106
+
`function(value [, key [, object]])`
86
107
87
-
`function(value [, key [, object]])`
88
-
89
-
Each value in the input object is passed in as the first parameter in the supplied function. The key (property name) of that value in the input object is passed in as the second parameter, if specified. The whole input object is passed in as the third parameter, if specified.
108
+
Each value in the input object is passed in as the first parameter in the supplied function. The key (property name) of that value in the input object is passed in as the second parameter, if specified. The whole input object is passed in as the third parameter, if specified.
0 commit comments