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

Function getValidateFactory

benchmark/validators/validate-array.js:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14});
15
16function getValidateFactory() {
17 const {
18 validateArray,
19 } = require('internal/validators');
20
21 return (n) => validateArray(n, 'n');
22}
23
24function main({ n, value }) {
25 const validate = getValidateFactory();

Callers 1

mainFunction · 0.70

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…