Browse files

only print hasOwnProperty properties

  • Loading branch information...
1 parent f96416f commit fde7cf97815b32b875b31961e4ebedb128facc18 @thrackle thrackle committed Jan 27, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/table.js
View
1 lib/table.js
@@ -74,6 +74,7 @@ function Formatter (opts) {
opts = opts || {}
return function (obj, cell) {
for (var key in obj) {
+ if (!obj.hasOwnProperty(key)) continue
var o = opts[key]
cell(
(o && o.name) || key,

0 comments on commit fde7cf9

Please sign in to comment.