diff options
Diffstat (limited to 'node_modules/gulp-debug/node_modules/gulp-util/lib/isBuffer.js')
-rw-r--r-- | node_modules/gulp-debug/node_modules/gulp-util/lib/isBuffer.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/gulp-debug/node_modules/gulp-util/lib/isBuffer.js b/node_modules/gulp-debug/node_modules/gulp-util/lib/isBuffer.js new file mode 100644 index 000000000..7c52f78c9 --- /dev/null +++ b/node_modules/gulp-debug/node_modules/gulp-util/lib/isBuffer.js @@ -0,0 +1,7 @@ +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; +}; |