Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
21
function
removeIndent(str) {
22
var
indentation = /^[\t ]+/m.exec(str);
23
return
str.replace(
new
RegExp(
'^'
+ indentation[0],
'gm'
),
''
);
24
}
25
26
function
testCode(exec) {
27
if
(typeof exec ===
'function'
) {
Callers
1
testCode
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected