230
return '{' + parts.join(',') + '}';
231
}
233
>
type obj = { [key: string]: any };
234
>
/**
235
>
* Returns an object that has keys for each value that is different in the base object. Keys
236
>
* that do not exist in the target but in the base object are not considered.
237
>
*
238
>
* Note: This is not a deep-diffing method, so the values are strictly taken into the resulting
239
>
* object if they differ.
240
>
*
241
>
* @param base the object to diff against
242
>
* @param obj the object to use for diffing
243
>
*/
244
>
export function distinct(base: obj, target: obj): obj {
245
const result = Object.create(null);
246