I am trying to search for any object key that has the value of "*"
Not the wildcard character, but the string "*"
.
How do I escape the asterisk in the following code? currently (and rightly so) this returns every property in the object.
keys = Object.keys(fullListObj).filter((k) => fullListObj[k] === 'n/a' || '*');