Sha256: e5a492402a7948173e61143c574ab91c27b977290fb5a5c285835fa75f23e329

Contents?: true

Size: 444 Bytes

Versions: 215

Compression:

Stored size: 444 Bytes

Contents

(function (root) {
  'use strict'
  window.GOVUK = window.GOVUK || {}

  window.GOVUK.extendObject = function (obj) {
    obj = obj || {}

    for (var i = 1; i < arguments.length; i++) {
      if (!arguments[i]) {
        continue
      }

      for (var key in arguments[i]) {
        if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {
          obj[key] = arguments[i][key]
        }
      }
    }

    return obj
  }
}(window))

Version data entries

215 entries across 215 versions & 1 rubygems

Version Path
govuk_publishing_components-29.0.1 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-29.0.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.9.2 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.9.1 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.9.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.8.1 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.8.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.7.1 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.6.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.5.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.4.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.3.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.2.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.1.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js
govuk_publishing_components-28.0.0 app/assets/javascripts/govuk_publishing_components/lib/extend-object.js