summaryrefslogtreecommitdiff
path: root/school/node_modules/ranges-merge/examples/api.json
blob: c6b6496d4e1dd5f4be6fb82bacfb03290ca4a17b (plain)
1
{"_quickTake.js":{"title":"Quick Take","content":"import { strict as assert } from \"assert\";\nimport { rMerge } from \"ranges-merge\";\n\n// joining edges:\nassert.deepEqual(\n  rMerge([\n    [1, 2],\n    [2, 3],\n    [9, 10],\n  ]),\n  [\n    [1, 3],\n    [9, 10],\n  ]\n);\n\n// an overlap:\nassert.deepEqual(\n  rMerge([\n    [1, 5],\n    [2, 10],\n  ]),\n  [[1, 10]]\n);"}}