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
The function used to test each element in the array. The function must return a truthy value if the element passes the test. The function can be a user-defined function or a core Arcade function defined with the following parameter:
The function used to test each element in the `inputArray`. The The function must return a truthy value if the element passes the test. The function can be a user-defined function or a core Arcade function defined with the following parameter:
The map or feature service containing one or more layers from which to create a FeatureSet. Typically, this value is the `$map` or `$datastore` global.
1120
1120
-**`id`**: [Text](../../guide/types/#text)
1121
-
The ID of the layer within the given `map`. This layer must be created from a feature service; feature collections are not supported. **Please note that this must be a string literal.**
1121
+
The ID of the layer within the given `map`. This layer must be created from a feature service; feature collections are not supported.
1122
+
**Please note that this must be a string literal.**
The fields to include in the FeatureSet. By default, all fields are included. To request all fields in the layer, set this value to `['*']`. Limiting the number of fields improves the performance of the script.
The map or feature service containing one or more layers from which to create a FeatureSet. Typically, this value is the `$map` or `$datastore` global.
1155
1156
-**`title`**: [Text](../../guide/types/#text)
1156
-
The title of the layer within the given `map`. This layer must be created from a feature service; feature collections are not supported. **Please note that this must be a string literal.**
1157
+
The title of the layer within the given `map`. This layer must be created from a feature service; feature collections are not supported.
1158
+
**Please note that this must be a string literal.**
The fields to include in the FeatureSet. By default, all fields are included. To request all fields in the layer, set this value to `['*']`. Limiting the number of fields improves the performance of the script.
The function used to filter elements in the array. The The function must return a truthy value if the element passes the test. This function can be a user-defined function or a core Arcade function defined with the following parameter:
@@ -1996,7 +1998,7 @@ Inserts a new value into an array at a given index. Existing elements positioned
1996
1998
The array to insert the new value into.
1997
1999
-**`index`**: [Number](../../guide/types/#number)
1998
2000
The index of the array where the new value should be inserted. An index of 0 will insert the value at the beginning of the array. An index that equals the size of the array will insert the value at the end of the array. An index greater than the size of the array will cause an error. If a negative index is provided, it will be used as an offset from the end of the array.
1999
-
-**`value`**: *
2001
+
-**`value`**: Any
2000
2002
The value to insert into the array.
2001
2003
2002
2004
#### Return value: Null
@@ -2026,7 +2028,7 @@ Returns `true` if the provided value is `null` or an empty string (e.g. `''`). R
2026
2028
2027
2029
#### Parameter
2028
2030
2029
-
-**`value`**: *
2031
+
-**`value`**: Any
2030
2032
The value that is compared against `null` or `''`. This may be a value of any type.
The function to call on each element in the provided array. The function must return a new item that will be part of the returned array. The function can be a user-defined function or a core Arcade function defined with the following parameter:
The function to test each element in the array. The function must return a falsy value if the element doesn't pass the test. The function can be a user-defined function or a core Arcade function defined with the following parameter:
The format pattern string used to parse numbers formatted in a localized context from a string value to a number. Sepcial characters to define the pattern:
@@ -2306,7 +2308,7 @@ OrderBy($layer, 'Rank ASC')
2306
2308
2307
2309
## Pop
2308
2310
2309
-
### Pop( array ) -> *
2311
+
### Pop( array ) -> Any
2310
2312
2311
2313
**[Since version 1.12](../../guide/version-matrix)**
2312
2314
@@ -2317,7 +2319,7 @@ Removes and returns the element at the end of the array. If the array is empty,
2317
2319
-**`array`**: [Array](../../guide/types/#array)
2318
2320
The input array from which the last element will be removed and returned.
2319
2321
2320
-
#### Return value: *
2322
+
#### Return value: Any
2321
2323
2322
2324
#### Example
2323
2325
@@ -2377,7 +2379,7 @@ Adds an element to the end of an array and returns the new length of the array.
2377
2379
2378
2380
-**`array`**: [Array](../../guide/types/#array)
2379
2381
The array to have elements pushed to.
2380
-
-**`value`**: *
2382
+
-**`value`**: Any
2381
2383
The value to add as the last element of the input array.
The number of elements desired in the resized array.
2481
-
-**`value`** (_Optional_): *
2483
+
-**`value`** (_Optional_): Any
2482
2484
The optional value that will be used for any new elements added to the array. If no value is specified, the newly added elements will have a `null` value.
2483
2485
2484
2486
#### Return value: Null
@@ -2663,9 +2665,9 @@ A user defined function to be used for the sort. The function receives two eleme
0 commit comments