@blackglory/structures 0.10.8 → 0.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +6 -0
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +6 -0
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +6 -0
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +6 -0
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/dynamic-typed-array.d.ts +1 -0
- package/lib/es2015/dynamic-typed-array.js +6 -0
- package/lib/es2015/dynamic-typed-array.js.map +1 -1
- package/lib/es2018/dynamic-typed-array.d.ts +1 -0
- package/lib/es2018/dynamic-typed-array.js +6 -0
- package/lib/es2018/dynamic-typed-array.js.map +1 -1
- package/package.json +1 -1
package/dist/es2015/index.umd.js
CHANGED
|
@@ -16721,6 +16721,12 @@
|
|
|
16721
16721
|
return undefined;
|
|
16722
16722
|
}
|
|
16723
16723
|
}
|
|
16724
|
+
sort(compare) {
|
|
16725
|
+
const capacity = this.capacity;
|
|
16726
|
+
this.resize(this.length);
|
|
16727
|
+
this.array.sort(compare);
|
|
16728
|
+
this.resize(capacity);
|
|
16729
|
+
}
|
|
16724
16730
|
resize(newCapacity) {
|
|
16725
16731
|
if (this.array.length === newCapacity) {
|
|
16726
16732
|
return;
|