Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: updating info about lodash.merge util
  • Loading branch information
obecny committed Sep 23, 2021
commit 667f0a7034a04afd462c2e8d11201b7ceb7fb516
9 changes: 5 additions & 4 deletions packages/opentelemetry-core/src/utils/lodash.merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/* eslint-disable @typescript-eslint/no-explicit-any */

/**
* based on lodash.merge
* @TODO - should I add here more info ?
*/
* based on lodash in order to support esm builds without esModuleInterop.
* lodash is using MIT License.
**/

const objectTag = '[object Object]';
const nullTag = '[object Null]';
const undefinedTag = '[object Undefined]';
Expand Down Expand Up @@ -82,7 +83,7 @@ export function isPlainObject(value: any) {
if (proto === null) {
return true;
}
const Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
const Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
funcToString.call(Ctor) === objectCtorString;
}
Expand Down