source: frontend/node_modules/core-js-pure/es/instance/repeat.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 387 bytes
Line 
1'use strict';
2var isPrototypeOf = require('../../internals/object-is-prototype-of');
3var method = require('../string/virtual/repeat');
4
5var StringPrototype = String.prototype;
6
7module.exports = function (it) {
8 var own = it.repeat;
9 return typeof it == 'string' || it === StringPrototype
10 || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.repeat) ? method : own;
11};
Note: See TracBrowser for help on using the repository browser.