Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alephdata/aleph
/ ensureArray
Function
ensureArray
ui/src/util/ensureArray.js:3–8 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
1
import
_ from
'lodash'
;
2
3
export
default
function
ensureArray(value) {
4
if
(_.isNil(value)) {
5
return
[];
6
}
7
return
_.castArray(value);
8
}
Callers
4
render
Method · 0.50
render
Method · 0.50
setPlain
Method · 0.50
getList
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected