JSFiddle - React, Tailwind, and code Playground
by Rob Sedgwick
HTML
mother bear
JavaScript
str='dog=1,cat=2,horse=3';
str.split(",").filter(function(kv) {return kv.slice(0, 4) != "dog=";}).join(",");
alert(str);
by Rob Sedgwick
mother bear
str='dog=1,cat=2,horse=3';
str.split(",").filter(function(kv) {return kv.slice(0, 4) != "dog=";}).join(",");
alert(str);