@shgysk8zer0/polyfills 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/array.js CHANGED
@@ -262,6 +262,19 @@ if (! (Array.prototype.with instanceof Function)) {
262
262
  };
263
263
  }
264
264
 
265
+ if (! (Array.isTemplateObject instanceof Function)) {
266
+ Array.isTemplateObject = function(target) {
267
+ if (! (
268
+ Array.isArray(target) && Array.isArray(target.raw)
269
+ && Object.isFrozen(target) && Object.isFrozen(target.raw)
270
+ )) {
271
+ return false;
272
+ } else {
273
+ return target.length !== 0 && target.length === target.raw.length;
274
+ }
275
+ };
276
+ }
277
+
265
278
  /**
266
279
  * @see https://github.com/tc39/proposal-arraybuffer-base64
267
280
  */