summaryrefslogtreecommitdiff
path: root/alarm/node_modules/ranges-apply/examples/api.json
blob: 6e3e3f169951bb50318ccef015c209fe7e497b47 (plain)
1
{"_quickTake.js":{"title":"Quick Take","content":"import { strict as assert } from \"assert\";\nimport { rApply } from \"ranges-apply\";\n\nconst oldString = `The quick brown fox jumps over the lazy dog.`;\nconst ranges = [\n  [4, 19, \"bad grey wolf\"],\n  [35, 43, \"little Red Riding Hood\"],\n];\nassert.equal(\n  rApply(oldString, ranges),\n  \"The bad grey wolf jumps over the little Red Riding Hood.\"\n);"}}