Code coverage report for lib/deps/ajax/createBlobOrBufferFromParts.js

Statements: 100% (4 / 4)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (4 / 4)      Ignored: none     

All files » lib/deps/ajax/ » createBlobOrBufferFromParts.js
1 2 3 4 5 6 7 8 9    1   1 67 747    
'use strict';
 
var buffer = require('../binary/buffer');
 
module.exports = function createBlobOrBufferFromParts(parts, type) {
  return buffer.concat(parts.map(function (part) {
    return new buffer(part, 'binary');
  }));
};