Skip to content

Commit

Permalink
Use void undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Connormiha committed Dec 27, 2021
1 parent de140f3 commit 5c1223e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/stringify.js
Expand Up @@ -80,7 +80,7 @@ var stringify = function stringify(
var tmpSc = sideChannel;
var step = 0;
var findFlag = false;
while (typeof (tmpSc = tmpSc.get(sentinel)) !== 'undefined' && !findFlag) {
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
// Where object last appeared in the ref tree
var pos = tmpSc.get(object);
step += 1;
Expand Down Expand Up @@ -142,7 +142,7 @@ var stringify = function stringify(
var objKeys;
if (generateArrayPrefix === 'comma' && isArray(obj)) {
// we need to join elements in
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : (void 0) }];
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
} else if (isArray(filter)) {
objKeys = filter;
} else {
Expand Down

0 comments on commit 5c1223e

Please sign in to comment.