MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / saysTrue

Function saysTrue

packages/entrypoint/scripts/argv.js:6–10  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4};
5
6function saysTrue(value) {
7 if (typeof value === "string") value = value.toLowerCase();
8
9 return [1, true, "1", "true", "yes"].includes(value);
10}
11
12/**
13 * @param {string} name

Callers 1

argv.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected