<script type="importmap">
{
"imports": {
"es-toolkit": "https://esm.sh/es-toolkit@%5E1"
}
}
</script>
import { isEqual: esToolkitisEqual } from 'es-toolkit';
const node1 = {
id: "n-w71cvCJS6w7WM8E3C3_6w",
order: "a06DJ",
type: "shape",
attributes: {
width: 100,
height: 100,
color: '#fff',
}
};
const node2 = {
id: "n-w71cvCJS6w7WM8E3C3_6w",
order: "a06DJ",
type: "shape",
attributes: {
width: 100,
height: 100,
color: '#fff',
}
};
esToolkitisEqual(node1, node2);
JSON.stringify(node1) === JSON.stringify(node2);
--enable-precise-memory-info
flag.
Test case name | Result |
---|---|
es-toolkit | |
JSON.stringify |
This benchmark does not have any results yet. Be the first one to run it!