Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

es6-iterator

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-iterator - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

index.js
'use strict';
var clear = require('es5-ext/array/#/clear')
, toPosInt = require('es5-ext/number/to-pos-integer')
, assign = require('es5-ext/object/assign')

@@ -33,3 +32,3 @@ , callable = require('es5-ext/object/valid-callable')

_next: d(function () {
var i, l;
var i;
if (!this.__list__) return;

@@ -40,4 +39,3 @@ if (this.__redo__) {

}
l = toPosInt(this.__list__.length);
if (this.__nextIndex__ < l) return this.__nextIndex__++;
if (this.__nextIndex__ < this.__list__.length) return this.__nextIndex__++;
this._unBind();

@@ -44,0 +42,0 @@ }),

{
"name": "es6-iterator",
"version": "0.1.1",
"version": "0.1.2",
"description": "Iterator abstraction based on ES6 specification",

@@ -20,10 +20,14 @@ "author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)",

"d": "~0.1.1",
"es5-ext": "~0.10.2",
"es6-symbol": "0.1.x"
"es5-ext": "~0.10.4",
"es6-symbol": "~0.1.1"
},
"devDependencies": {
"event-emitter": "~0.3.1",
"tad": "0.2.x"
"tad": "0.2",
"xlint": "~0.2.1",
"xlint-jslint-medikoo": "~0.1.2"
},
"scripts": {
"lint": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream",
"lint-console": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch",
"test": "node ./node_modules/tad/bin/tad"

@@ -30,0 +34,0 @@ },

@@ -28,3 +28,3 @@ # es6-iterator

iterator.next(); // { value: 2, done: false }
iterator.next(); // { value: 3, done: true }
iterator.next(); // { value: 3, done: false }
iterator.next(); // { value: undefined, done: true }

@@ -48,3 +48,3 @@ ```

iterator.next(); // { value: [1, 2], done: false }
iterator.next(); // { value: [2, 3], done: true }
iterator.next(); // { value: [2, 3], done: false }
iterator.next(); // { value: undefined, done: true }

@@ -61,3 +61,3 @@ ```

iterator.next(); // { value: 2, done: false }
iterator.next(); // { value: 3, done: true }
iterator.next(); // { value: 3, done: false }
iterator.next(); // { value: undefined, done: true }

@@ -81,3 +81,3 @@ }(1, 2, 3));

iterator.next(); // { value: 'o', done: false }
iterator.next(); // { value: '🙊', done: true }
iterator.next(); // { value: '🙊', done: false }
iterator.next(); // { value: undefined, done: true }

@@ -122,3 +122,3 @@ ```

iterator.next(); // { value: 2, done: false }
iterator.next(); // { value: 3, done: true }
iterator.next(); // { value: 3, done: false }
iterator.next(); // { value: undefined, done: true }

@@ -125,0 +125,0 @@ ```

@@ -7,3 +7,3 @@ 'use strict';

return {
"Values": function (a) {
Values: function (a) {
var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it;

@@ -38,3 +38,3 @@

},
"Keys": function (a) {
Keys: function (a) {
var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it;

@@ -54,3 +54,3 @@

},
"Sparse": function (a) {
Sparse: function (a) {
var x = new Array(6), it;

@@ -57,0 +57,0 @@

@@ -24,3 +24,3 @@ 'use strict';

},
"Emited": function (a) {
Emited: function (a) {
var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć'], y, it;

@@ -27,0 +27,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc