Skip to content

Commit

Permalink
Merge pull request #116 from DhyeyMoliya/master
Browse files Browse the repository at this point in the history
Update isValid store when using array validation - improves util.getValues
  • Loading branch information
larrybotha authored May 1, 2021
2 parents ac8d3cb + 0d53877 commit 22f948a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function isEmpty(object) {
function getValues(object) {
let result = [];
for (const [, value] of Object.entries(object)) {
result = [...result, typeof value === 'object' ? getValues(value) : value];
result = [...result, ...(typeof value === 'object' ? getValues(value) : [value])];
}
return result;
}
Expand Down

0 comments on commit 22f948a

Please sign in to comment.