79493828

Date: 2025-03-08 03:34:30
Score: 1.5
Natty:
Report link

const aaa = [
  {id: 10, val: "xx"},
  {id: 27, val: "tr"},
  {id: 13, val: "ut"}
]

const index = aaa.findIndex(item => item.id === 27)

console.log(index)

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ZhenSheng Liang