eq.js 263 B

12345678910111213141516
  1. 'use strict';
  2. var bufferEqual = require('../');
  3. console.dir(bufferEqual(
  4. new Buffer([253, 254, 255]),
  5. new Buffer([253, 254, 255])
  6. ));
  7. console.dir(bufferEqual(
  8. new Buffer('abc'),
  9. new Buffer('abcd')
  10. ));
  11. console.dir(bufferEqual(
  12. new Buffer('abc'),
  13. 'abc'
  14. ));