JRJon Randy@jonrandy·5d0e8b80fPop quiz. Give me your shortest JS to get the last non-empty element from an array1Quote
JJPetsis@JPetsis·5d2f5caccjsarr.findLast(v => v != null && v !== '' && (typeof v !== 'object' || Object.keys(v).length))Quote
Jon Randy@jonrandy·5d2/2090ba3cActually slot might be a better word to use than element here08:28 · Nov 13, 2026 · commit 090ba3cQuoteReply