var _arr = JSON.parse(localStorage.getItem('editVal'));
var len = _arr.length;
for (var i = 0; i < len; i++) {
if (_arr[i].key == key) {
_arr.splice(i, 1);
}
}
localStorage.setItem("editVal", JSON.stringify(_arr));