code: function getLeaves(object, delimiter) {
      var leaves = [];
  
      forEach(object, function (value, key) {
        if (value && typeof value === 'object' && !isArray(value)) {
          value = prefixKeys(value, key, delimiter || '.');
          leaves = leaves.concat(getLeaves(value, delimiter));
        } else {
          leaves.push({
            key:   key,
            value: value
          });
        }
      });
  
      return leaves;
    }
docs: /* Finds all the values at the end of an object tree and returns them
  in an Array of object literals with a "key" and "value" properties.
  The key consists of all parent keys delimited by a special
  character.
  
  object     - An Object literal to traverse.
  deilimiter - A String used to seperate keys (default: '').
  
  Examples
  
  var obj = {a: {b: 'leaf 1', c: 'leaf 2'}};
  getLeaves(obj);
  // => [{key: 'a.b', value: 'leaf 1'}, {key: 'a.c', value: 'leaf 2'}]
  
  Returns Array of leaves.