Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

insert

  • insert<T>(arr: T [], index: number, ...values: T []): number

在数组指定位置插入元素

Type parameters

  • T

Parameters

  • arr: T []

    需要插入的数组

  • index: number

    插入的下标,负值从末尾开始计算,超过数组最大长度则追加在最后

  • ...values: T [] Rest

    插入的值

Returns number

  • 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.