File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import isArray from " ./es-utils/is-array"
1+ import isArray from ' ./es-utils/is-array'
22
33const 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
88const isError = ( o : unknown ) =>
99 o instanceof Error || / ^ \[ o b j e c t ( E r r o r | ( D o m ) ? E x c e p t i o n ) ] $ / . 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
1313const 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)
You can’t perform that action at this time.
0 commit comments