MCPcopy
hub / github.com/webpack/webpack / asString

Method asString

lib/Template.js:264–269  ·  view source on GitHub ↗

* Returns a single string from array. * @param {string | string[]} str string or string collection * @returns {string} returns a single string from array

(str)

Source from the content-addressed store, hash-verified

262 * @returns {string} returns a single string from array
263 */
264 static asString(str) {
265 if (Array.isArray(str)) {
266 return str.join("\n");
267 }
268 return str;
269 }
270
271 /**
272 * Defines the with id type used by this module.

Callers 5

destructureArrayMethod · 0.45
destructureObjectMethod · 0.45
wrapInConditionFunction · 0.45
prefixMethod · 0.45
generateMethod · 0.45

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected