MCPcopy Index your code
hub / github.com/jprichardson/string.js / EQ

Function EQ

test/string.test.js:14–19  ·  view source on GitHub ↗
(v1, v2)

Source from the content-addressed store, hash-verified

12 function T(v) { if (!v) { throw new Error('Should be true.'); } };
13 function F(v) { if (v) { throw new Error('Should be false.'); } };
14 function EQ(v1, v2) {
15 if (typeof require != 'undefined' && typeof process != 'undefined') //node
16 require('assert').equal(v1, v2)
17 else
18 T (v1 === v2)
19 }
20
21 function ARY_EQ(a1, a2) {
22 EQ (a1.length, a2.length)

Callers 2

ARY_EQFunction · 0.85
string.test.jsFile · 0.85

Calls 1

TFunction · 0.85

Tested by

no test coverage detected