79125725

Date: 2024-10-25 12:46:12
Score: 0.5
Natty:
Report link

I'm using .at() most of the time:

let arr = [1, 2, 3, 4, 5];
let lastElement = arr.at(-1);
console.log(lastElement);

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: mrconcerned