Skip to content

Commit

Permalink
Removing all references to arrow functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmassaioli committed Jan 10, 2019
1 parent 4433e1b commit a425516
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ exports.define = function(obj, key, val) {
* Returns true if `val` is a buffer
*/

exports.isBuffer = val => typeOf(val) === 'buffer';
exports.isBuffer = function(val) {
return typeOf(val) === 'buffer';
};

/**
* Returns true if `val` is an object
*/

exports.isObject = val => typeOf(val) === 'object';
exports.isObject = function(val) {
return typeOf(val) === 'object';
};

/**
* Cast `input` to a buffer
Expand Down

0 comments on commit a425516

Please sign in to comment.