all files / util/ isObject.js

100% Statements 3/3
100% Branches 3/3
100% Functions 1/1
100% Lines 3/3
1 2 3 4 108564× 108564×  
export default function isObject(val) {
  const type = typeof val
  return Boolean(val) && (type === 'object' || type === 'function')
}