FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cfdocs/data/en/arrayfirst.json at master · foundeo/cfdocs · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
foundeo
/
cfdocs
Public
Notifications
You must be signed in to change notification settings
Fork
354
Star
189
Code
Issues
88
Pull requests
11
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
cfdocs
/
data
/
en
/
arrayfirst.json
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (32 loc) · 1.35 KB
Breadcrumbs
cfdocs
/
data
/
en
/
arrayfirst.json
Copy path
File metadata and controls
32 lines (32 loc) · 1.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"name"
:
"
arrayFirst
"
,
"type"
:
"
function
"
,
"syntax"
:
"
arrayFirst(array)
"
,
"member"
:
"
array.first()
"
,
"returns"
:
"
any
"
,
"related"
: [
"
arrayLast
"
],
"description"
:
"
Returns the first item from an array.
"
,
"params"
: [
{
"name"
:
"
array
"
,
"description"
:
"
"
,
"required"
:
true
,
"default"
:
"
"
,
"type"
:
"
array
"
,
"values"
: []}
],
"engines"
: {
"lucee"
: {
"minimum_version"
:
"
"
,
"notes"
:
"
"
,
"docs"
:
"
https://docs.lucee.org/reference/functions/arrayfirst.html
"
},
"coldfusion"
: {
"minimum_version"
:
"
2018
"
,
"notes"
:
"
"
,
"docs"
:
"
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-a-b/arrayfirst.html
"
},
"boxlang"
: {
"minimum_version"
:
"
1.0.0
"
,
"notes"
:
"
"
,
"docs"
:
"
https://boxlang.ortusbooks.com/boxlang-language/reference/built-in-functions/array/arrayfirst
"
}
},
"examples"
: [
{
"title"
:
"
Member Function
"
,
"description"
:
"
Use the member function to return the first item from an array
"
,
"code"
:
"
someArray = [1,2,3,4];
\n
WriteOutput(someArray.first());
"
,
"result"
:
"
1
"
},
{
"title"
:
"
Non-Member Function
"
,
"description"
:
"
Return the first item from an array
"
,
"code"
:
"
seinfeldArray = [
\"
Jerry
\"
,
\"
Elaine
\"
,
\"
Kramer
\"
,
\"
George
\"
];
\n
WriteOutput(arrayFirst(seinfeldArray));
"
,
"result"
:
"
\"
Jerry
\"
"
}
],
"links"
: []
}
Back
|
FazBrowse Home
|
New Git URL