UNPKG
@dialog-db/query
Version:
latest (0.11.1)
0.11.1
0.11.0
0.10.1
0.10.0
Datalog query engine inspired by Datomic
@dialog-db/query
/
src
/
debug.js
13 lines
(11 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
*
as
JSON
from
'./json.js'
/** *
@param
{
{
}} source *
@returns
{
string
} */
export
const
toDebugString
= (
source
) =>
// @ts-expect-error
typeof
source.
toDebugString
===
'function'
?
// @ts-expect-error
source.
toDebugString
() :
JSON
.
toString
(source)