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

stac

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stac - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "stac",
"version": "0.0.2",
"version": "0.0.3",
"description": "Maintain a sorted stack of things.",

@@ -5,0 +5,0 @@ "main": "stac.js",

@@ -106,3 +106,5 @@

this._sort();
this._stack.forEach(iterator, thisArg);
this._stack.forEach(function (item, i) {
iterator.call(thisArg, item.obj, i);
}, thisArg);
};

@@ -109,0 +111,0 @@

@@ -115,3 +115,17 @@ var Stac = require('../');

it('can loop over the items', function () {
var check = [];
stack.add(1);
stack.add(2);
stack.add(3);
stack.forEach(function (num) {
check.push(num);
});
assert.deepEqual(check, [1, 2, 3]);
});
});
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