Test name | Executions per second |
---|---|
Object values | 11530333.0 Ops/sec |
_.values | 10472404.0 Ops/sec |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.core.js"></script>
var a = { a: {pk: '1', bounding: {left: 34, right: 32}}, b: {pk: '2', bounding: {left: 32, right: 34}}, c: {pk: '3', bounding: {left: 2, right: 1}}};
Object.values(a);
var a = { a: {pk: '1', bounding: {left: 34, right: 32}}, b: {pk: '2', bounding: {left: 32, right: 34}}, c: {pk: '3', bounding: {left: 2, right: 1}}};
_.values(a);