var circleIterator = function (data) {

    'use strict';

    if (!Array.isArray(data)) {
        throw new Error('Incoming data is not Array!');
        return false;
    }

    return {

        data: data,

        prev: function () {
            this.data.unshift(this.data.pop());
            return this.data[0];
        },

        current: function () {
            return this.data[0];
        },

        next: function () {
            this.data.push(this.data.shift());
            return this.data[0];
        }

    }

}
