MCPcopy Create free account
hub / github.com/compat-table/compat-table / removeIndent

Function removeIndent

runner_support.js:21–24  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

19}
20
21function removeIndent(str) {
22 var indentation = /^[\t ]+/m.exec(str);
23 return str.replace(new RegExp('^' + indentation[0], 'gm'), '');
24}
25
26function testCode(exec) {
27 if (typeof exec === 'function') {

Callers 1

testCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected