Type Alias Device<A, R>

Device<A, R>: A["length"] extends 0
    ? R
    : A extends readonly [...(infer F), infer N]
        ? ArrayPlus.Entries.Device<F, [[F["length"], N], ...R]>
        : never

Type Parameters

  • A extends readonly unknown[]
  • R extends unknown[]