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

Method isScalarReference

packages/core/src/utils/Utils.ts:697–699  ·  view source on GitHub ↗

* Checks whether given object is a scalar reference.

(data: any)

Source from the content-addressed store, hash-verified

695 * Checks whether given object is a scalar reference.
696 */
697 static isScalarReference<T = unknown>(data: any): data is ScalarReference<any> & {} {
698 return ScalarReference.isScalarReference(data);
699 }
700
701 /**
702 * Checks whether the argument is empty (array without items, object without keys or falsy value).

Callers 5

processPropertyMethod · 0.45
processPropertyMethod · 0.45
processEntityMethod · 0.45
GH7534.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected