MCPcopy Index your code
hub / github.com/nodejs/node / strip

Function strip

deps/v8/test/mjsunit/fun-name.js:28–30  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

26// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28function strip(s) {
29 return s.replace(/\s/g, '');
30}
31
32assertEquals('function(){}', strip((function () { }).toString()));
33assertEquals('functionanonymous(){}', strip(new Function().toString()));

Callers 2

writeMethod · 0.85
fun-name.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected