Skip to content

Commit

Permalink
Borrow isFunction from moment
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Jan 15, 2016
1 parent 44ce91b commit 52d896c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions moment-timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@
return cachedGuess;
}

function isFunction(input) {
return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
}

/************************************
Global Methods
************************************/
Expand Down

0 comments on commit 52d896c

Please sign in to comment.