Skip to content

Commit 0dd6dcf

Browse files
AnastasiiaSvietlovagingerbenw
authored andcommitted
fix quotes
1 parent 7b7a1d8 commit 0dd6dcf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

packages/core/src/lib/derecursify.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import isArray from "./es-utils/is-array"
1+
import isArray from './es-utils/is-array'
22

33
const isSafeLiteral = (obj: unknown): boolean =>
4-
typeof obj === "string" || obj instanceof String ||
5-
typeof obj === "number" || obj instanceof Number ||
6-
typeof obj === "boolean" || obj instanceof Boolean
4+
typeof obj === 'string' || obj instanceof String ||
5+
typeof obj === 'number' || obj instanceof Number ||
6+
typeof obj === 'boolean' || obj instanceof Boolean
77

88
const isError = (o: unknown) =>
99
o instanceof Error || /^\[object (Error|(Dom)?Exception)]$/.test(Object.prototype.toString.call(o))
1010

11-
const throwsMessage = (err: Error) => "[Throws: " + (err ? err.message : "?") + "]"
11+
const throwsMessage = (err: Error) => '[Throws: ' + (err ? err.message : '?') + ']'
1212

1313
const safelyGetProp = (obj: Object, propName: keyof Object) => {
1414
try {
@@ -47,7 +47,7 @@ const derecursify = (data: unknown): {} => {
4747

4848
if (seen.includes(obj)) {
4949
// circular references are replaced and marked
50-
return "[Circular]"
50+
return '[Circular]'
5151
}
5252

5353
// handle arrays, and all iterable non-array types (such as Set)

0 commit comments

Comments
 (0)