json-api-schema
Version:
JSON Api Schema is a JSON dialect that can describe any Web Based API that uses JSON to exchange data.
31 lines (22 loc) • 523 B
JavaScript
var EntityIterator;
EntityIterator = (function() {
function EntityIterator(entity) {
this.entity = entity;
}
EntityIterator.prototype.next = function() {
if (!this.hasNext()) {
return null;
}
};
EntityIterator.prototype.hasNext = function() {
return false;
};
EntityIterator.prototype.rewind = function() {
return this.entity;
};
EntityIterator.prototype.current = function() {
return this.entity;
};
return EntityIterator;
})();
module.exports = EntityIterator;