diff --git a/src/table/table.js b/src/table/table.js index d4642d49..b05c8532 100644 --- a/src/table/table.js +++ b/src/table/table.js @@ -1,5 +1,6 @@ import Transformable from './transformable'; import error from '../util/error'; +import isNumber from '../util/is-number'; import repeat from '../util/repeat'; /** @@ -275,7 +276,7 @@ export default class Table extends Transformable { * number-valued, specifies the row limit. */ print(options = {}) { - if (typeof options === 'number') { + if (isNumber(options)) { options = { limit: options }; } else if (options.limit == null) { options.limit = 10;