Skip to content

Commit 6145e37

Browse files
authored
Merge pull request #290 from ferdinandsalis/patch-1
Use `hasOwnProperty` from Object prototype
2 parents 90cde12 + 05aceee commit 6145e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helpers/columnSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function ColumnSet(columns, options) {
214214
} else {
215215
this.columns = [];
216216
for (var name in columns) {
217-
if (inherit || columns.hasOwnProperty(name)) {
217+
if (inherit || Object.prototype.hasOwnProperty.call(columns, name)) {
218218
this.columns.push(new $npm.Column(name));
219219
}
220220
}

0 commit comments

Comments
 (0)