@blackglory/structures
Advanced tools
Comparing version 0.10.18 to 0.10.19
@@ -28,16 +28,16 @@ "use strict"; | ||
for (let index = 0; index < lastIndex; index++) { | ||
const element = this.array[index]; | ||
let element = this.array[index]; | ||
for (let bit = 0; bit < this.bitsPerElement; bit++) { | ||
const mask = this.getMask(bit); | ||
if ((element & mask) === mask) { | ||
if (element & 1) { | ||
yield index * this.bitsPerElement + bit; | ||
} | ||
element >>= 1; | ||
} | ||
} | ||
const lastElement = this.array[maxArrayLength - 1]; | ||
let lastElement = this.array[maxArrayLength - 1]; | ||
for (let bit = 0; bit < remainder; bit++) { | ||
const mask = this.getMask(bit); | ||
if ((lastElement & mask) === mask) { | ||
if (lastElement & 1) { | ||
yield lastIndex * this.bitsPerElement + bit; | ||
} | ||
lastElement >>= 1; | ||
} | ||
@@ -44,0 +44,0 @@ } |
@@ -28,16 +28,16 @@ "use strict"; | ||
for (let index = 0; index < lastIndex; index++) { | ||
const element = this.array.internalTypedArray[index]; | ||
let element = this.array.internalTypedArray[index]; | ||
for (let bit = 0; bit < this.bitsPerElement; bit++) { | ||
const mask = this.getMask(bit); | ||
if ((element & mask) === mask) { | ||
if (element & 1) { | ||
yield index * this.bitsPerElement + bit; | ||
} | ||
element >>= 1; | ||
} | ||
} | ||
const lastElement = this.array.internalTypedArray[maxArrayLength - 1]; | ||
let lastElement = this.array.internalTypedArray[maxArrayLength - 1]; | ||
for (let bit = 0; bit < remainder; bit++) { | ||
const mask = this.getMask(bit); | ||
if ((lastElement & mask) === mask) { | ||
if (lastElement & 1) { | ||
yield lastIndex * this.bitsPerElement + bit; | ||
} | ||
lastElement >>= 1; | ||
} | ||
@@ -44,0 +44,0 @@ } |
@@ -28,16 +28,16 @@ "use strict"; | ||
for (let index = 0; index < lastIndex; index++) { | ||
const element = this.array[index]; | ||
let element = this.array[index]; | ||
for (let bit = 0; bit < this.bitsPerElement; bit++) { | ||
const mask = this.getMask(bit); | ||
if ((element & mask) === mask) { | ||
if (element & 1) { | ||
yield index * this.bitsPerElement + bit; | ||
} | ||
element >>= 1; | ||
} | ||
} | ||
const lastElement = this.array[maxArrayLength - 1]; | ||
let lastElement = this.array[maxArrayLength - 1]; | ||
for (let bit = 0; bit < remainder; bit++) { | ||
const mask = this.getMask(bit); | ||
if ((lastElement & mask) === mask) { | ||
if (lastElement & 1) { | ||
yield lastIndex * this.bitsPerElement + bit; | ||
} | ||
lastElement >>= 1; | ||
} | ||
@@ -44,0 +44,0 @@ } |
@@ -28,16 +28,16 @@ "use strict"; | ||
for (let index = 0; index < lastIndex; index++) { | ||
const element = this.array.internalTypedArray[index]; | ||
let element = this.array.internalTypedArray[index]; | ||
for (let bit = 0; bit < this.bitsPerElement; bit++) { | ||
const mask = this.getMask(bit); | ||
if ((element & mask) === mask) { | ||
if (element & 1) { | ||
yield index * this.bitsPerElement + bit; | ||
} | ||
element >>= 1; | ||
} | ||
} | ||
const lastElement = this.array.internalTypedArray[maxArrayLength - 1]; | ||
let lastElement = this.array.internalTypedArray[maxArrayLength - 1]; | ||
for (let bit = 0; bit < remainder; bit++) { | ||
const mask = this.getMask(bit); | ||
if ((lastElement & mask) === mask) { | ||
if (lastElement & 1) { | ||
yield lastIndex * this.bitsPerElement + bit; | ||
} | ||
lastElement >>= 1; | ||
} | ||
@@ -44,0 +44,0 @@ } |
{ | ||
"name": "@blackglory/structures", | ||
"version": "0.10.18", | ||
"version": "0.10.19", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
4652547
28610