Skip to content

Commit

Permalink
Ignore Blob objects when mapping
Browse files Browse the repository at this point in the history
Closes #46
  • Loading branch information
sindresorhus committed Jun 21, 2022
1 parent 27e9323 commit 5a52e66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const isObjectCustom = value =>
isObject(value)
&& !(value instanceof RegExp)
&& !(value instanceof Error)
&& !(value instanceof Date);
&& !(value instanceof Date)
&& !(globalThis.Blob && value instanceof globalThis.Blob);

export const mapObjectSkip = Symbol('mapObjectSkip');

Expand Down

0 comments on commit 5a52e66

Please sign in to comment.