Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shim.js « string.prototype.trimstart « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5ea6dfdcf9ddeaf199207d42d7802bbe4bfa65d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

var define = require('define-properties');
var getPolyfill = require('./polyfill');

module.exports = function shimTrimStart() {
	var polyfill = getPolyfill();
	define(
		String.prototype,
		{ trimStart: polyfill },
		{ trimStart: function () { return String.prototype.trimStart !== polyfill; } }
	);
	return polyfill;
};