src/utils/pad-end.js
function padEnd (string, targetLength) {
  if (typeof string !== 'string' ||
    typeof targetLength !== 'number') {
    return string
  }

  /* istanbul ignore next */
  const fn = typeof String.prototype.padEnd === 'function'
    ? String.prototype.padEnd
    : polyfill

  return fn.call(string, targetLength)
}
function padEnd (string, targetLength) {
  if (typeof string !== 'string' ||
    typeof targetLength !== 'number') {
    return string
  }

  /* istanbul ignore next */
  const fn = typeof String.prototype.padEnd === 'function'
    ? String.prototype.padEnd
    : polyfill

  return fn.call(string, targetLength)
}
function padEnd ( string , targetLength ) { if ( typeof string !== 'string' || typeof targetLength !== 'number' ) { return string } /* istanbul ignore next */ const fn = typeof String . prototype . padEnd === 'function' ? String . prototype . padEnd : polyfill return fn . call ( string , targetLength ) }
String.prototype.padEnd

@param {string} string string
@param {number} targetLength padding length
@returns {string} string
String . prototype . padEnd