all files / semantic-graphql/src/utils/ isNil.js

100% Statements 3/3
100% Branches 4/4
100% Functions 1/1
100% Lines 3/3
1 2 3 4 5 6      
function isNil(value) {
  return typeof value === 'undefined' || value === null || (Array.isArray(value) && !value.length);
}
 
module.exports = isNil;