Sha256: b4b1625bfcf5ff926da03abe85a29d746f654ae59477f246c48a3e5081a7fca3

Contents?: true

Size: 399 Bytes

Versions: 42

Compression:

Stored size: 399 Bytes

Contents

'use strict';

var define = require('define-properties');
var shimUnscopables = require('es-shim-unscopables');

var getPolyfill = require('./polyfill');

module.exports = function shimFlat() {
	var polyfill = getPolyfill();

	define(
		Array.prototype,
		{ flat: polyfill },
		{ flat: function () { return Array.prototype.flat !== polyfill; } }
	);

	shimUnscopables('flat');

	return polyfill;
};

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.27 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.26 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.25 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.24 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.23 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.22 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.21 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.20 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.19 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.18 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.17 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.16 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.14 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.13 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.12 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.11 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.10 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.9 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.8 node_modules/array.prototype.flat/shim.js
immosquare-cleaner-0.1.7 node_modules/array.prototype.flat/shim.js