Skip to content

Commit

Permalink
[improve]: consider 0 as empty
Browse files Browse the repository at this point in the history
  • Loading branch information
GopherJ committed Jun 19, 2019
1 parent c7a4e56 commit 0ee654f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LayoutGrid/LayoutGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
const isObject = o => String(o) === '[object Object]';
const isArrayAndHasLength = arr => Array.isArray(arr) && arr.length > 0;
const isEmpty = s => s === '' || s === undefined || s === null;
const isEmpty = s => s === '' || s === undefined || s === null || s === 0;
const isFunction = f => typeof f === 'function';
const rootEmitter = (vm, event, payload) => {
Expand Down

0 comments on commit 0ee654f

Please sign in to comment.