DEV Community

Kenji Suzuki
Kenji Suzuki

Posted on

drrizleのbatchのtype

2025-04-28

export const isTuple = <T>(array: T[], gt = 0): array is [T, ...T[]] => {
  return array.length > gt;
};
Enter fullscreen mode Exit fullscreen mode

Top comments (0)