mirror of
https://github.com/LanceGin/jsotp.git
synced 2026-01-26 00:00:18 +08:00
fix: Util.arr_rjust error
This commit is contained in:
@@ -44,8 +44,8 @@ export class Util {
|
||||
* @return {BYTES}
|
||||
*/
|
||||
static arr_rjust(arr, n) {
|
||||
if (0 <= arr.lenth) {
|
||||
arr = arr.splice(arr.lenth - 1 - n);
|
||||
if (n <= arr.length) {
|
||||
arr = arr.splice(arr.length - 1 - n);
|
||||
return arr;
|
||||
} else {
|
||||
let diff = n - arr.length;
|
||||
|
||||
Reference in New Issue
Block a user