Skip to content

Commit

Permalink
Merge pull request #1 from UMAprotocol/pablo/fix-clean-object
Browse files Browse the repository at this point in the history
fix: cleanobject function
  • Loading branch information
md0x authored Feb 28, 2024
2 parents 2f9ed1a + f678249 commit 1f18b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function _cleanObject(obj) {
cleanedArray.push(_cleanObject(elt));
}
return cleanedArray;
} else if (typeof obj === "object") {
} else if (typeof obj === "object" && obj !== null) {

// Remove all of the array-style keys, and clean the values for the non array-style keys.
const cleanedObject = {};
Expand Down

0 comments on commit 1f18b70

Please sign in to comment.