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

Function validateInput

lib/internal/util/diff.js:11–18  ·  view source on GitHub ↗
(value, name)

Source from the content-addressed store, hash-verified

9const { myersDiff } = require('internal/assert/myers_diff');
10
11function validateInput(value, name) {
12 if (!ArrayIsArray(value)) {
13 validateString(value, name);
14 return;
15 }
16
17 validateStringArray(value, name);
18}
19
20/**
21 * Generate a difference report between two values

Callers 1

diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…