@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/es2018/index.mjs
CHANGED
|
@@ -16715,6 +16715,12 @@ class DynamicTypedArray {
|
|
|
16715
16715
|
return undefined;
|
|
16716
16716
|
}
|
|
16717
16717
|
}
|
|
16718
|
+
sort(compare) {
|
|
16719
|
+
const capacity = this.capacity;
|
|
16720
|
+
this.resize(this.length);
|
|
16721
|
+
this.array.sort(compare);
|
|
16722
|
+
this.resize(capacity);
|
|
16723
|
+
}
|
|
16718
16724
|
resize(newCapacity) {
|
|
16719
16725
|
if (this.array.length === newCapacity) {
|
|
16720
16726
|
return;
|