Iterator.prototype.hasNext >= 0.1.2

Purpose

See if there is a next item

Syntax

Iterator#hasNext ( );

Parameters

Return values

Boolean

Examples

var arr = ['a', 'b', 'c'],
    iter = new Iterator(arr);

iter.hasNext();
>>> true

iter.next();
>>> {index: 0, value: "a", done: false}

iter.next();
>>> {index: 1, value: "b", done: false}

iter.next();
>>> {index: 2, value: "c", done: false}

// All items will be fetched now, so hasNext will return false
iter.hasNext();
>>> false

Comments

Anitra

I found your web site from Google as well as I have to state it was a fantastic locate.

Thanks!

Jewell

Can you inform me what system are you making use of on this internet site?

Eliza

Have you ever before had issues with your web host? I'm open for recommendations as my webhost is dreadful now.

Tabatha

Could you tell me what theme are you making use of on your site? It looks great.

Hong

I discovered your web site from Google and I need to state it was a wonderful find. Many thanks!

George

Can you tell me what platform are you utilizing on this site?

Brittny

Hi there! Such a nice write-up, thanks!

Bernie

I located your web site from Google and also I have to say it was a great locate.

Many thanks!

Ulrike

Can you inform me what platform are you making use of on this web site?