.filter() to the rescue
As an alternative to delete, for some use cases, you may want to consider using the
Array .filter method. Or, perhaps better, the Underscore library’s
.select() method, which works equally well on objects, and delegates to the native
.filter() if it exists.