main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
363 bytes
|
Line | |
---|
1 | import defaultNamespaceInstance from "../namespace.mjs";
|
---|
2 | import dehydrate from "./dehydrate.mjs";
|
---|
3 | /**
|
---|
4 | * Create a refracted string representation of an Element.
|
---|
5 | */
|
---|
6 | const toString = (element, namespace = defaultNamespaceInstance) => {
|
---|
7 | const refractStructure = dehydrate(element, namespace);
|
---|
8 | return JSON.stringify(refractStructure);
|
---|
9 | };
|
---|
10 | export default toString; |
---|
Note:
See
TracBrowser
for help on using the repository browser.