checkpoint prototype
This commit is contained in:
parent
2f755459ff
commit
849a55439b
12 changed files with 169 additions and 50 deletions
|
|
@ -227,6 +227,12 @@ for (let i in AP) {
|
|||
});
|
||||
}
|
||||
|
||||
Float32Array.prototype.toShared = function() {
|
||||
const newvert = new Float32Array(new SharedArrayBuffer(this.buffer.byteLength));
|
||||
newvert.set(this);
|
||||
return newvert;
|
||||
};
|
||||
|
||||
String.prototype.reverse = function() {
|
||||
return this.split('').reverse().join('');
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue