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]; }