JSFiddle - React, Tailwind, and code Playground
by irinablue
JavaScript
const data = [
{
"k": "3",
"v": null
},
{
"k": "15",
"v": "0"
},
{
"k": "18",
"v": "0"
},
{
"k": "19",
"v": "0"
},
{
"k": "31",
"v": "0"
},
{
"k": "34",
"v": "691590"
},
{
"k": "36",
"v": "0.40251589"
},
{
"k": "37",
"v": "main"
},
{
"k": "42",
"v": null
},
{
"k": "43",
"v": "bskidcxvOCnxg73T4i3wtgkYXmNN79Il2wNmyPwyr4c07"
},
{
"k": "48",
"v": null
},
{
"k": "50",
"v": null
},
{
"k": "58",
"v": "false"
},
{
"k": "[DRAFT] 202",
"v": "category"
}
];
for (const [index, item] of data.entries()) {
if (item.v === null) console.log(index);
}