Skip to main content

core.intersection

Home > @medplum/core > intersection

intersection() function

List the keys that shared by all objects.

The semantics of what constitutes a "key" is described in subtract().

Signature:

export declare function intersection(objects: ArrayLike<{
[index: string]: any;
}>): string[];

Parameters

Parameter

Type

Description

objects

ArrayLike<{ [index: string]: any; }>

Array of objects to compare

Returns:

string[]

Array of keys that are in ("own-properties" of) every object in objects.