lodash vs no lodash

Edit on GitHub

Setup

<script src="https://cdn.jsdelivr.net/lodash/4.2/lodash.min.js"></script>
<script> var settings = {config: {attributes:{validations: [{max: 10}, {max:5}]}}};</script>

Tests

  • lodash

    _.get(settings, 'config.attributes.validations[1].max');
  • no lodash

    settings.config.attributes.validations[1].max