MCPcopy
hub / github.com/vercel/next.js / looseToArray

Function looseToArray

packages/next/src/client/index.tsx:77–77  ·  view source on GitHub ↗
(input: any)

Source from the content-addressed store, hash-verified

75export const emitter: MittEmitter<string> = mitt()
76
77const looseToArray = <T extends {}>(input: any): T[] => [].slice.call(input)
78
79let initialData: NEXT_DATA
80let defaultLocale: string | undefined = undefined

Callers 2

onStartFunction · 0.85
onHeadCommitFunction · 0.85

Calls 1

callMethod · 0.80

Tested by

no test coverage detected