10.02.2018 Views

js_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Javascript<br />

var rv = arguments[1];<br />

}<br />

else<br />

{<br />

do<br />

{<br />

if (i in this)<br />

{<br />

rv = this[i++];<br />

break;<br />

}<br />

}<br />

// if array contains no values, no initial value to return<br />

if (++i >= len)<br />

throw new TypeError();<br />

}<br />

while (true);<br />

for (; i < len; i++)<br />

{<br />

if (i in this)<br />

rv = fun.call(null, rv, this[i], i, this);<br />

}<br />

}<br />

};<br />

return rv;<br />

Example<br />

Try the following example.<br />

<br />

<br />

204

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!