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
JRJon Randy@jonrandy·5d1/2ec24fa6Doesn't find the last non-empty element08:27 · Nov 13, 2026 · commit ec24fa6QuoteReply
Jon Randy@jonrandy·5d2/2090ba3cActually slot might be a better word to use than element hereQuoteReply