MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / flatten

Method flatten

packages/core/src/utils/Utils.ts:890–892  ·  view source on GitHub ↗
(arrays: T[][], deep?: boolean)

Source from the content-addressed store, hash-verified

888 }
889
890 static flatten<T>(arrays: T[][], deep?: boolean): T[] {
891 return arrays.flatMap(v => (deep && Array.isArray(v) ? this.flatten(v as unknown as T[][], true) : v));
892 }
893
894 static isOperator(key: PropertyKey, includeGroupOperators = true): boolean {
895 if (!includeGroupOperators) {

Callers 14

mapIndexPropertiesMethod · 0.45
buildFieldsMethod · 0.45
getPkSerializerMethod · 0.45
getCompositeKeyHashMethod · 0.45
getOrderedPrimaryKeysMethod · 0.45
getByIdMethod · 0.45
mapDataToFieldNamesFunction · 0.45
initManyToManyFieldsMethod · 0.45
initManyToOneFieldsMethod · 0.45
initOneToManyFieldsMethod · 0.45
populateManyMethod · 0.45
nativeInsertManyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected