Permalink
Browse files

more normal isFunction check

  • Loading branch information...
dominictarr committed Aug 9, 2017
1 parent e6b8e47 commit 61b8899e7150124473864f76f0e60d9b6cebf421
Showing with 3 additions and 3 deletions.
  1. +3 −3 blobs.js
@@ -3,9 +3,8 @@ var pull = require('pull-stream')
var ssbHash = require('pull-hash/ext/ssb')
var multicb = require('multicb')
function isFunction(functionToCheck) {
var getType = {};
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
function isFunction(f) {
return 'function' === typeof f
}
// sbot.blobs.add function decorator
@@ -41,3 +40,4 @@ module.exports = function fixAddBlob(add) {
return sink
}
}

0 comments on commit 61b8899

Please sign in to comment.