Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Splidejs/splide
/ toArray
Function
toArray
src/js/utils/array/toArray/toArray.ts:11–13 ·
view source on GitHub ↗
( value: T | T[] )
Source
from the content-addressed store, hash-verified
9
* @
return
An array containing the value, or the value itself
if
it is already an array.
10
*/
11
export
function
toArray<T>( value: T | T[] ): T[] {
12
return
isArray( value ) ? value : [ value ];
13
}
Callers
6
filter
Function · 0.90
push
Function · 0.90
forEach
Function · 0.90
toArray.test.ts
File · 0.90
on
Function · 0.90
is
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…