All files / src/util isEmpty.ts

100% Statements 2/2
100% Branches 6/6
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5  26x 95x    
// https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_isempty
export function isEmpty(obj: any) {
  return [Object, Array].includes((obj || {}).constructor) && !Object.keys((obj || {})).length;
}