MCPcopy Create free account
hub / github.com/denoland/celld / validateString

Function validateString

crates/celld/js/node_util.js:472–476  ·  view source on GitHub ↗
(value, name)

Source from the content-addressed store, hash-verified

470 }
471}
472function validateString(value, name) {
473 if (typeof value !== 'string') {
474 throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
475 }
476}
477function validateStringArray(value, name) {
478 validateArray(value, name);
479 for (let i = 0; i < value.length; ++i) {

Callers 3

parseEnvFunction · 0.70
stripVTControlCharactersFunction · 0.70
styleTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected