I have a random string that comes from a data source that I do not control. My upstream system has a requirement for such IDs: "Field names must begin with a letter and can contain only letters, digits, or underscore ('_')".
How, in Typescript/Javascript (possibly, with lodash) can I replace all string symbols that is not a letter/digit/underscore to an underscore?