Lodash isFunction (v2)

Revision 2 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 = () => {};

Test runner

Ready to run.

Testing in
TestOps/sec
Lodash
const run = () => {
	_.isFunction(func)
};

run();

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

run();
ready

Revisions

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