|
1 | 1 | [](https://www.npmjs.com/package/jsoncmp) |
2 | 2 | [](https://jsr.io/@observ33r/jsoncmp) |
| 3 | +[](https://jsr.io/@observ33r/jsoncmp/score) |
3 | 4 | [](https://bundlephobia.com/package/jsoncmp) |
4 | 5 | [](https://github.com/observ33r/jsoncmp/blob/main/LICENSE) |
5 | 6 | [](https://www.paypal.com/donate/?hosted_button_id=PPPN7F3VXXE8W) |
@@ -70,8 +71,8 @@ function jsoncmp(target: JSONCmpValue, source: JSONCmpValue): boolean |
70 | 71 | ```ts |
71 | 72 | import jsoncmp from 'jsoncmp'; |
72 | 73 |
|
73 | | -const target = JSON.parse('{ "a": 1, "b": [2, 3] }'); |
74 | | -const source = JSON.parse('{ "a": 1, "b": [2, 3] }'); |
| 74 | +const target = JSON.parse('{ "a": 1, "b": ['2', null, false] }'); |
| 75 | +const source = JSON.parse('{ "a": 1, "b": ['2', null, false] }'); |
75 | 76 |
|
76 | 77 | console.log(jsoncmp(target, source)); //true |
77 | 78 | ``` |
@@ -148,9 +149,9 @@ summary |
148 | 149 |
|
149 | 150 | </details> |
150 | 151 |
|
151 | | -## Running Benchmark |
| 152 | +--- |
152 | 153 |
|
153 | | -Benchmark uses [mitata](https://github.com/evanwashere/mitata) for performance testing with big JSON Object to reflect realistic real-world scenario. |
| 154 | +Benchmark uses [mitata](https://github.com/evanwashere/mitata) to test performance with [big JSON object](https://github.com/observ33r/jsoncmp/blob/main/benchmark/data.ts) to reflect a realistic real-world scenario. |
154 | 155 |
|
155 | 156 | You can run bechmark with: |
156 | 157 |
|
|
0 commit comments