JSFiddle - React, Tailwind, and code Playground
by Guruprasad Rao
JavaScript
var bankBranchReponse =
[{"BankBranchId":1,"BankBranchName":"Citi","isPaymentMade":"Yes"},
{"BankBranchId":2,"BankBranchName":"HDFC","isPaymentMade":"Yes"},
{"BankBranchId":3,"BankBranchName":"HSBC","isPaymentMade":"Yes"},
{"BankBranchId":4,"BankBranchName":"SBI","isPaymentMade":"Yes"},
{"BankBranchId":5,"BankBranchName":"ICICI","isPaymentMade":"No"},
{"BankBranchId":6,"BankBranchName":"JPMorgan","isPaymentMade":"No"}];
var removeVariable={"BankBranchId":6,"BankBranchName":"JPMorgan","isPaymentMade":"No"};
console.log(bankBranchReponse.length);
for(var i=0;i<bankBranchReponse.length;i++)
{
if(bankBranchReponse[i].BankBranchId === removeVariable.BankBranchId && bankBranchReponse[i].BankBranchName===removeVariable.BankBranchName && bankBranchReponse[i].isPaymentMade===removeVariable.isPaymentMade)
bankBranchReponse.pop(bankBranchReponse[i]);
}
console.log(bankBranchReponse);
/*for(var i=0;i<bankBranchReponse.length;i++)
{
if(a[i]!=="a") newArray.push(a[i]);
}*/