[core-js] Update to padStart, padEnd (stage 4) (#12440)

This commit is contained in:
Patrick Westerhoff 2016-11-30 14:37:42 +01:00 committed by Andy
parent abb8bade28
commit 3c56e866d6
2 changed files with 6 additions and 6 deletions

View File

@ -334,15 +334,15 @@ b = Reflect.setPrototypeOf(a, a);
// #############################################################################################
// ECMAScript 7
// Modules: es7.array.includes, es7.string.at, es7.string.lpad, es7.string.rpad,
// Modules: es7.array.includes, es7.string.at, ees7.string.pad-start, es7.string.pad-end,
// es7.object.to-array, es7.object.get-own-property-descriptors, es7.regexp.escape,
// es7.map.to-json, and es7.set.to-json
// #############################################################################################
b = arrayOfPoint.includes(point, i);
s = s.at(i);
s = s.lpad(i, s);
s = s.rpad(i, s);
s = s.padStart(i, s);
s = s.padEnd(i, s);
arrayOfAny = Object.values(a);
arrayOfStringAny = Object.entries(a);
pdm = Object.getOwnPropertyDescriptors(a);

6
core-js/index.d.ts vendored
View File

@ -890,7 +890,7 @@ declare namespace Reflect {
// #############################################################################################
// ECMAScript 7
// Modules: es7.array.includes, es7.string.at, es7.string.lpad, es7.string.rpad,
// Modules: es7.array.includes, es7.string.at, es7.string.pad-start, es7.string.pad-end,
// es7.object.to-array, es7.object.get-own-property-descriptors, es7.regexp.escape,
// es7.map.to-json, and es7.set.to-json
// #############################################################################################
@ -901,8 +901,8 @@ interface Array<T> {
interface String {
at(index: number): string;
lpad(length: number, fillStr?: string): string;
rpad(length: number, fillStr?: string): string;
padStart(length: number, fillStr?: string): string;
padEnd(length: number, fillStr?: string): string;
}
interface ObjectConstructor {