Lodash isFunction (v5)

Revision 5 of this benchmark created on


Preparation HTML

<script src="
https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js
"></script>

Setup

const func = Math.random() * 100 > 50 ? () => {} : "fun";

const lodash = () => {
	return _.isFunction(func)
};

const native = () => {
	return typeof func === "function";
};

Test runner

Ready to run.

Testing in
TestOps/sec
Lodash
lodash();

ready
native
native();
ready

Revisions

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