Merge branch 'main' into threads

This commit is contained in:
ITOH
2021-05-03 21:52:58 +02:00
2 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -40,7 +40,12 @@ Deno.test({
fn() {
const converted = loopObject(
objWithBigints,
(value) => typeof value === "bigint" ? value.toString() : value,
(value) =>
typeof value === "bigint"
? value.toString()
: Array.isArray(value)
? value.map((v) => typeof v === "bigint" ? v.toString() : v)
: value,
`Running for loop in unit test function for changing bigints to strings.`,
);