Sha256: 6790a68da652805b1a8f8e1ee4b4cec05fa03a90a6149d28c1158d40ffe89ef6

Contents?: true

Size: 1.03 KB

Versions: 77

Compression:

Stored size: 1.03 KB

Contents

(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
    typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
    (factory());
}(this, (function () { 'use strict';

    // @ts-nocheck
    (function (undefined) {

        // Detection from https://github.com/mdn/content/blob/cf607d68522cd35ee7670782d3ee3a361eaef2e4/files/en-us/web/javascript/reference/global_objects/string/trim/index.md#polyfill
        var detect = ('trim' in String.prototype);

        if (detect) return

        // Polyfill from https://github.com/mdn/content/blob/cf607d68522cd35ee7670782d3ee3a361eaef2e4/files/en-us/web/javascript/reference/global_objects/string/trim/index.md#polyfill
        String.prototype.trim = function () {
            return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
        };

    }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});

})));
//# sourceMappingURL=trim.js.map

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
govuk_publishing_components-39.2.5 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-39.2.4 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-39.2.3 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-39.2.2 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-39.2.1 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-39.2.0 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-39.1.0 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-39.0.0 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-38.4.2 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-38.1.1 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-38.1.0 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-38.0.1 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-38.0.0 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-37.10.0 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-37.9.1 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-37.9.0 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-37.8.1 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-37.8.0 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-37.7.1 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js
govuk_publishing_components-37.7.0 node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js