MCPcopy
hub / github.com/webpack/webpack / asArray

Function asArray

lib/webpack.js:134–135  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

132 * @returns {T[]} array of options
133 */
134const asArray = (options) =>
135 Array.isArray(options) ? [...options] : [options];
136
137/**
138 * Checks whether it needs validate.

Callers 1

createFunction · 0.70

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected