Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

flatMap

  • flatMap<T, V>(arr: T [], k?: ArrayKFn<T, V []>): V []

自行实现 flatMap,将数组压平一层

Type parameters

  • T
  • V

Parameters

  • arr: T []

    数组

  • k: ArrayKFn<T, V []> = (v: T) => Array.from(v as any) Default value

    映射方法,将一个元素映射为一个数组

Returns V []

压平一层的数组

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