Skip to content

Commit

Permalink
padStart/padEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Aug 30, 2019
1 parent 8604cf6 commit 3e9807a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/util/src/polyfill/padEnd.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable no-extend-native */
/* eslint-disable @typescript-eslint/unbound-method */
// Copyright 2017-2019 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.

if (!String.prototype.padEnd) {
// eslint-disable-next-line no-extend-native
String.prototype.padEnd = function padEnd (length: number, char = ' '): string {
let result = String(this);

Expand Down
2 changes: 1 addition & 1 deletion packages/util/src/polyfill/padStart.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable no-extend-native */
/* eslint-disable @typescript-eslint/unbound-method */
// Copyright 2017-2019 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.

if (!String.prototype.padStart) {
// eslint-disable-next-line no-extend-native
String.prototype.padStart = function padStart (length: number, char = ' '): string {
let result = String(this);

Expand Down

0 comments on commit 3e9807a

Please sign in to comment.