Code coverage report for dynamoDb-marshaler/lib/commands/marshalNull.js

Statements: 100% (5 / 5)      Branches: 100% (4 / 4)      Functions: 100% (1 / 1)      Lines: 100% (5 / 5)      Ignored: none     

All files » dynamoDb-marshaler/lib/commands/ » marshalNull.js
1 2 3 4 5 6 7 8 9 10 11    1   1 3 1   2    
'use strict';
 
var _ = require('lodash');
 
module.exports = function(item) {
  if (!_.isNull(item) && !_.isUndefined(item)) {
    return undefined;
  }
  return {NULL: true};
};