MCPcopy Index your code
hub / github.com/rollup/plugins / normalizeInput

Function normalizeInput

packages/node-resolve/src/util.js:167–176  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

165}
166
167export function normalizeInput(input) {
168 if (Array.isArray(input)) {
169 return input;
170 } else if (typeof input === 'object') {
171 return Object.values(input);
172 }
173
174 // otherwise it's a string
175 return [input];
176}

Callers 1

resolveLikeNodeFunction · 0.90

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected