JSFiddle - React, Tailwind, and code Playground

JavaScript

var things = [
    {
        id: "12345",
        name: "Bryan"
    },
    {
        id: "55555",
        name: "Justin"
    }
];

function removeElementByPropertyValue(arr, propertyName, propertyValue) {
    for (var i = 0, count = arr.length; i < count; i++) {
        if (arr[i][propertyName] === propertyValue) {
            arr.splice(i, 1);
            return;
        }
    }
}

for (var i = 0; i < things.length; i++) {
    console.log('Before: ', things[i].name);
}

removeElementByPropertyValue(things, 'id', '55555');

for (var i2 = 0; i2 < things.length; i2++) {
    console.log('After: ', things[i2].name);
}