3275945be8488b65345c29cb0b10a1642dff1ad9
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / instance / trim-end.js
1 var isPrototypeOf = require('../../internals/object-is-prototype-of');
2 var method = require('../string/virtual/trim-end');
3
4 var StringPrototype = String.prototype;
5
6 module.exports = function (it) {
7   var own = it.trimEnd;
8   return typeof it == 'string' || it === StringPrototype
9     || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.trimEnd) ? method : own;
10 };