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

Statements: 100% (6 / 6)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (6 / 6)      Ignored: none     

All files » dynamoDb-marshaler/lib/commands/ » marshalList.js
1 2 3 4 5 6 7 8 9 10 11 12 13    1   1 3 1     2 2    
'use strict';
 
var _ = require('lodash');
 
module.exports = function(item, marshal) {
  if (!_.isArray(item)) {
    return undefined;
  }
 
  item = _.map(item, marshal);
  return {L: item};
};