coverage 🖼 100% of core.js

🌴 🌴
This commit is contained in:
abdennour 2016-11-26 02:11:41 +03:00
commit 067281b7a3
2 changed files with 43 additions and 6 deletions

View file

@ -1,8 +1,8 @@
export const isJsons = ((array) => array.every(
export const isJsons = ((array) => Array.isArray(array) && array.every(
row => (typeof row === 'object' && !(row instanceof Array))
));
export const isArrays = ((array) => array.every(
export const isArrays = ((array) => Array.isArray(array) && array.every(
row => Array.isArray(row)
));