Sha256: e1a197472abc21f668a6543c6d9f59c1acacd751a3f50f44c594d7fd9640021e

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

Stored size: 713 Bytes

Contents

'use strict';
var DESCRIPTORS = require('../internals/descriptors');
var uncurryThis = require('../internals/function-uncurry-this');
var defineBuiltInAccessor = require('../internals/define-built-in-accessor');

var URLSearchParamsPrototype = URLSearchParams.prototype;
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);

// `URLSearchParams.prototype.size` getter
// https://github.com/whatwg/url/pull/734
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
  defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
    get: function size() {
      var count = 0;
      forEach(this, function () { count++; });
      return count;
    },
    configurable: true,
    enumerable: true
  });
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-0.26.10 packages/webpacker/node_modules/core-js/modules/web.url-search-params.size.js
decidim-0.26.9 packages/webpacker/node_modules/core-js/modules/web.url-search-params.size.js
decidim-0.28.0.rc5 packages/webpacker/node_modules/core-js/modules/web.url-search-params.size.js
decidim-0.28.0.rc4 packages/webpacker/node_modules/core-js/modules/web.url-search-params.size.js