Socket
Socket
Sign inDemoInstall

hoek

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hoek - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

5

lib/index.js

@@ -123,6 +123,7 @@ // Load modules

for (var i = 0, il = array.length; i < il; ++i) {
if (index[array[i][key]] !== true) {
var id = (key ? array[i][key] : array[i]);
if (index[id] !== true) {
result.push(array[i]);
index[array[i][key]] = true;
index[id] = true;
}

@@ -129,0 +130,0 @@ }

2

package.json
{
"name": "hoek",
"description": "General purpose node utilities",
"version": "0.2.0",
"version": "0.3.0",
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)",

@@ -6,0 +6,0 @@ "contributors":[

@@ -130,2 +130,8 @@ // Load modules

});
it('removes duplicated without key', function (done) {
expect(Hoek.unique([1, 2, 3, 4, 2, 1, 5])).to.deep.equal([1, 2, 3, 4, 5]);
done();
});
});

@@ -132,0 +138,0 @@

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