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
first
flatten
indexOf
inspect
intersect
last
lastIndexOf
reverse
size
toArray
uniq
without
Class
Date
Enumerable
Function
Hash
Number
Object
ObjectRange
PeriodicalExecuter
RegExp
String
Template
Try
Home
→
Language section
→
Array
→
first
src code
instance method
Array#first
Array#first() → ?
Returns the array's first item (e.g.,
array[0]
).