Menu
Search
Search
Prototype
Prototype.Browser
Prototype.BrowserFeatures
Prototype.Selector
Ajax section
Ajax
Ajax.PeriodicalUpdater
Ajax.Request
Ajax.Responders
Ajax.Response
Ajax.Updater
DOM section
$
$$
$F
Abstract
Abstract.EventObserver
Abstract.TimedObserver
document
document.viewport
Element
Element.Layout
Element.Methods
Element.Offset
Event
Event.Handler
Form
Form.Element
Form.Element.EventObserver
Form.Element.Observer
Form.EventObserver
Form.Observer
Selector
Language section
$A
$H
$R
$w
Array
from
clear
clone
compact
every
filter
first
flatten
indexOf
inspect
intersect
last
lastIndexOf
map
reverse
size
some
toArray
uniq
without
Class
Date
Enumerable
Function
Hash
Number
Object
ObjectRange
PeriodicalExecuter
RegExp
String
Template
Try
Home
→
Language
→
Array
→
first
instance method
Array#first
View source on GitHub →
Array#first() → ?
Returns the array's first item (e.g.,
array[0]
).