MCPcopy
hub / github.com/nolimits4web/swiper / makeElementsArray

Function makeElementsArray

src/shared/utils.ts:238–240  ·  view source on GitHub ↗
(el: T | T[])

Source from the content-addressed store, hash-verified

236}
237
238export function makeElementsArray<T>(el: T | T[]): NonNullable<T>[] {
239 return (Array.isArray(el) ? el : [el]).filter((e): e is NonNullable<T> => !!e);
240}
241
242export function getRotateFix(swiper: { browser?: { need3dFix?: boolean } }) {
243 return (v: number): number => {

Callers 15

makeElFocusableFunction · 0.90
makeElNotFocusableFunction · 0.90
addElRoleFunction · 0.90
addElRoleDescriptionFunction · 0.90
addElLabelFunction · 0.90
addElIdFunction · 0.90
addElLiveFunction · 0.90
disableElFunction · 0.90
enableElFunction · 0.90
onEnterOrSpaceKeyFunction · 0.90
initFunction · 0.90
destroyFunction · 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…