isEmpty vs isEmptyObject (v5)

Revision 5 of this benchmark created by dwelle on


Preparation HTML

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

Setup

var obj = {}

Test runner

Ready to run.

Testing in
TestOps/sec
$.isEmpty
!$.isEmptyObject(obj)
ready
_.isEmpty
!_.isEmpty(obj)
ready

Revisions

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