# Code coverage report for vinyl/lib/isBuffer.js

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

All files » vinyl/lib/ » isBuffer.js

    1
    2
    3
    4
    5
    6
    71
    1

    1
    108
     var buf = require('buffer');
    var Buffer = buf.Buffer;

    // could use Buffer.isBuffer but this is the same exact thing...
    module.exports = function(o) {
      return typeof o === 'object' && o instanceof Buffer;
    };