All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.apollo-codegen.src.utilities.array.ts Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
export {};

declare global {
  interface Array {
    flatMap(callbackfn: (value: T, index: number, array: T[]) => U[] | undefined, thisArg?: any): U[];
  }
}

Object.defineProperty(Array.prototype, 'flatMap', {
  value: function(this: Array, callbackfn: (value: T, index: number, array: T[]) => U[], thisArg?: any): U[] {
    return [].concat.apply([], this.map(callbackfn, thisArg));
  },
  enumerable: false
});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy