Skip to content

Commit

Permalink
feat: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
benstoltz committed May 24, 2024
1 parent cfa40ce commit 07d1388
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/common/src/objects/deepFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export function deepFilter(
return Object.keys(object).reduce((acc, entry) => {
if (predicate(object[entry])) {
if (isFindable(object[entry])) {
// Deep filter will run through a Blob and clear out the Blob specific properties
// That we want to keep, so we are explicilty checking for Blob here
// and not iterating down into it
// Explicilty checking for Blob here, and copying the reference forward so it is maintained
if (typeof Blob !== "undefined" && object[entry] instanceof Blob) {
(acc as any)[entry] = object[entry];
} else {
Expand Down

0 comments on commit 07d1388

Please sign in to comment.