All files exp.js

100% Statements 6/6
100% Branches 0/0
100% Functions 2/2
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24        1x 1x           1x             1x 4x 4x      
/**
 * Module dependencies
 */
 
const co = require('co')
const keys = Object.keys
 
/**
 * Export `Exp`
 */
 
module.exports = Exp
 
/**
 * Initialize `Exp`
 */
 
function Exp (obj) {
  return keys(obj).reduce((exp, key) => {
    exp[key] = co.wrap(obj[key])
    return exp
  }, {})
}