utils-extend
Advanced tools
Comparing version 1.0.1 to 1.0.2
12
index.js
@@ -63,2 +63,14 @@ var util = require('util'); | ||
exports.unique = function(array) { | ||
var result = []; | ||
array.forEach(function(item) { | ||
if (result.indexOf(item) == -1) { | ||
result.push(item); | ||
} | ||
}); | ||
return result; | ||
} | ||
exports.hrtime = function(time) { | ||
@@ -65,0 +77,0 @@ if (time) { |
{ | ||
"name": "utils-extend", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Extend nodejs util api, and it is light weight and simple", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2770
89