FirstArrayElement
Returns the first element of an array. If the value passed is not an array, it returns the original value that was passed.
javascript · Filters And Transformers
Details
| ID | FirstArrayElement |
|---|---|
| Language | javascript |
| From Version | 5.0.0 |
| Tags | general transformer entirelist |
README
Returns the first element of an array. If the value passed is not an array, it returns the original value that was passed.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | general, transformer, entirelist |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| value | An array for which to return the first element. |
Outputs
There are no outputs for this script.
commonfields: id: FirstArrayElement version: -1 name: FirstArrayElement script: '' type: javascript tags: - general - transformer - entirelist comment: Returns the first element of an array. If the value passed is not an array, it returns the original value that was passed. enabled: true args: - name: value required: true default: true description: An array for which to return the first element. isArray: true scripttarget: 0 isllm: false runas: DBotWeakRole tests: - TestGetArrayElements fromversion: 5.0.0