Comparing version 1.0.0 to 1.0.1
14
index.js
@@ -40,4 +40,16 @@ 'use strict'; | ||
// V8 currently has a broken implementation | ||
// https://github.com/joyent/node/issues/8449 | ||
function doesForEachActuallyWork() { | ||
var ret = false; | ||
(new Set([true])).forEach(function (el) { | ||
ret = el; | ||
}); | ||
return ret; | ||
} | ||
if ('Set' in global) { | ||
if (typeof Set.prototype.forEach === 'function') { | ||
if (typeof Set.prototype.forEach === 'function' && doesForEachActuallyWork()) { | ||
module.exports = uniqSetWithForEach; | ||
@@ -44,0 +56,0 @@ } else { |
{ | ||
"name": "array-uniq", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Create an array without duplicates", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
2412
48