node_modules.apollo-codegen-core.src.utilities.array.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-client-maven-plugin Show documentation
Show all versions of apollo-client-maven-plugin Show documentation
Maven plugin for generating graphql clients
declare global {
interface Array {
flatMap(callbackfn: (value: T, index: number, array: T[]) => U[] | undefined, thisArg?: any): U[];
}
}
export function maybePush(list: T[], item: T) {
if (!list.includes(item)) {
list.push(item);
}
return list;
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy