es6-collections-iterators
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -5,9 +5,13 @@ (function (exports) {'use strict'; | ||
if (typeof Map != 'undefined') { | ||
if (typeof Map.prototype.entries == 'undefined') { | ||
var map = new Map(); | ||
if (typeof Map.prototype.entries === 'undefined' | ||
|| typeof map.entries().next === 'undefined') { | ||
Map.prototype.entries = mapEntries; | ||
} | ||
if (typeof Map.prototype.values == 'undefined') { | ||
if (typeof Map.prototype.values === 'undefined' | ||
|| typeof map.values().next === 'undefined') { | ||
Map.prototype.values = mapValues; | ||
} | ||
if (typeof Map.prototype.keys == 'undefined') { | ||
if (typeof Map.prototype.keys === 'undefined' | ||
|| typeof map.keys().next === 'undefined') { | ||
Map.prototype.keys = mapKeys; | ||
@@ -18,9 +22,13 @@ } | ||
if (typeof Set != 'undefined') { | ||
if (typeof Set.prototype.entries == 'undefined') { | ||
var set = new Set(); | ||
if (typeof Set.prototype.entries === 'undefined' | ||
|| typeof set.entries().next === 'undefined') { | ||
Set.prototype.entries = setEntries; | ||
} | ||
if (typeof Set.prototype.values == 'undefined') { | ||
if (typeof Set.prototype.values === 'undefined' | ||
|| typeof set.values().next === 'undefined') { | ||
Set.prototype.values = setValues; | ||
} | ||
if (typeof Set.prototype.keys == 'undefined') { | ||
if (typeof Set.prototype.keys === 'undefined' | ||
|| typeof set.keys().next === 'undefined') { | ||
Set.prototype.keys = setValues; | ||
@@ -27,0 +35,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"main": "iterators.js", | ||
@@ -8,0 +8,0 @@ "repository": { |
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
5522
82
10