From 5e059c9c17a6d63b6c017d2d2beb25ae227071d1 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 11 四月 2025 17:33:59 +0800 Subject: [PATCH] 走航融合优化中 --- src/utils/expand/expand.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/utils/expand/expand.js b/src/utils/expand/expand.js index 6495211..49eb52f 100644 --- a/src/utils/expand/expand.js +++ b/src/utils/expand/expand.js @@ -24,3 +24,9 @@ } return fmt; }; + +Array.prototype.lastCount = function (size) { + const l = this.length; + const s = size > this.length ? 0 : this.length - size; + return this.slice(s, l); +}; -- Gitblit v1.9.3