MrShi
2026-04-29 275596fc999e12e2b6f2f0ea1a0ddcc9efdc6567
1
2
3
4
5
6
7
8
9
10
11
'use strict';
var isPrototypeOf = require('../../internals/object-is-prototype-of');
var method = require('../string/virtual/pad-start');
 
var StringPrototype = String.prototype;
 
module.exports = function (it) {
  var own = it.padStart;
  return typeof it == 'string' || it === StringPrototype
    || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.padStart) ? method : own;
};