From 9fbec791c1a3299278968cbcc2f70e5e16ed91ff Mon Sep 17 00:00:00 2001 From: paige <88659700+paishee@users.noreply.github.com> Date: Mon, 29 Jan 2024 08:57:21 -0600 Subject: [PATCH] Update last.js --- src/Stew/functions/last.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stew/functions/last.js b/src/Stew/functions/last.js index b935518..ee8f2ad 100644 --- a/src/Stew/functions/last.js +++ b/src/Stew/functions/last.js @@ -3,7 +3,7 @@ const Stew = require('../index.js'); function StewLast(offset=0) { let entry = this.entries[(this.length-1)-offset]; - return (this.type == "pair") ? {key: entry[0], value: entry[1], index: this.length-1} : entry[1]; + return entry[1]; }