typeof function vs lodash isFunction 2 (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>

Setup

var foo = function(){};
    var isFunction;

Test runner

Ready to run.

Testing in
TestOps/sec
native
isFunction = typeof foo === 'function'
ready
lodash
isFunction = _.isFunction(foo)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.