function int(str) {
  return parseInt(str, 10);
}
@ngdoc function
@name angular.extend
@function

@description
Extends the destination object `dst` by copying all of the properties from the `src` object(s)
to `dst`. You can specify multiple `src` objects.

@param {Object} dst Destination object.
@param {...Object} src Source object(s).
@returns {Object} Reference to `dst`.