corrected useless shift/push/return / delete ambiguous import in API.ts + scale = scale;

This commit is contained in:
JulienH2000
2023-09-21 19:41:28 +02:00
parent e67f5abb7b
commit a86d0c923a
2 changed files with 4 additions and 6 deletions

View File

@ -348,6 +348,7 @@ Array.prototype.scale = function <T>(this: T[], scaleName: string = "major") {
const scale = SCALES[scaleName];
//input protect from unknow scale
if (!scale) {
throw new Error(`Unknown scale ${scaleName}`);
}
@ -363,7 +364,7 @@ Array.prototype.scale = function <T>(this: T[], scaleName: string = "major") {
}
}
this.shift()
this.push(...result);
return this;
//this.shift()
//this = [...result];
return result;
};