.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / instance / match-all.js
1 var matchAll = require('../string/virtual/match-all');
2
3 var StringPrototype = String.prototype;
4
5 module.exports = function (it) {
6   var own = it.matchAll;
7   return typeof it === 'string' || it === StringPrototype
8     || (it instanceof String && own === StringPrototype.matchAll) ? matchAll : own;
9 };