Skip to content

Commit

Permalink
fix: merge util typo
Browse files Browse the repository at this point in the history
  • Loading branch information
damyanpetev committed Feb 28, 2018
1 parent 844e28b commit c6ddc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Util.ts
Expand Up @@ -278,7 +278,7 @@ class Util {
public static merge(target: any, source: any) {
for (const key of Object.keys(source)) {
const sourceKeyIsArray = Array.isArray(source[key]);
const targetHasThisKey = target.hasOwnProperty[key];
const targetHasThisKey = target.hasOwnProperty(key);

if (typeof source[key] === "object" && !sourceKeyIsArray) {
// object value:
Expand Down

0 comments on commit c6ddc1b

Please sign in to comment.