'use strict';

module.exports = function(object, property, defaultValue) {
  if (arguments.length < 3) {
    defaultValue = 0;
  }
  if (!object) {
    return defaultValue;
  }
  const value = object[property];
  if (value === undefined) {
    return defaultValue;
  }

  return value;
};

@@ -6,16 +6,51 @@
 strict';
+%0Aconst get = require('lodash.get');
 %0A%0Amodule
@@ -211,37 +211,35 @@
 %7D%0A  
-const value = 
+return get(
 object
-%5B
+, 
 property
 %5D;%0A 
@@ -238,85 +238,23 @@
 erty
-%5D;%0A  if (value === undefined) %7B%0A    return defaultValue;%0A  %7D%0A%0A  return value;
+, defaultValue)
 %0A%7D;%0A

use lodash get for help get function