Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

segmentation

  • segmentation<T>(arr: T [], num: number): T [][]

数组按照指定长度进行分段为二维数组 注: num 必须要大于 1

Type parameters

  • T

Parameters

  • arr: T []

    要进行分段的数组

  • num: number

    每段的长度

Returns T [][]

分段后的二维数组

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.