MCPcopy
hub / github.com/braziljs/eloquente-javascript / compareJoined

Function compareJoined

src/run_tests.mjs:169–171  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

167}
168
169function compareJoined(a, b) {
170 return a.replace(/\n\s*/g, " ").trim() == b.replace(/\n\s*/g, " ").trim()
171}
172
173let accum = "", _console = {
174 clear: function() { accum = "" },

Callers 1

run_tests.mjsFile · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected