MCPcopy Create free account
hub / github.com/prototypejs/prototype / ok

Function ok

test/unit/static/js/proclaim.js:18–22  ·  view source on GitHub ↗
(val, msg)

Source from the content-addressed store, hash-verified

16
17 // Assert that a value is truthy
18 function ok (val, msg) {
19 if (!!!val) {
20 fail(val, true, msg, '==');
21 }
22 }
23 proclaim.ok = ok;
24
25 // Assert that two values are equal

Callers

nothing calls this directly

Calls 1

failFunction · 0.70

Tested by

no test coverage detected