source: node_modules/core-js-pure/es/instance/match-all.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

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