Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
134
const
asArray = (options) =>
135
Array.isArray(options) ? [...options] : [options];
136
137
/**
138
* Checks whether it needs validate.
Callers
1
create
Function · 0.70
Calls
1
isArray
Method · 0.80
Tested by
no test coverage detected