refactor: remove parseFloat from facades (#11446)

This commit is contained in:
Pawel Kozlowski
2016-09-08 22:54:10 +02:00
committed by Evan Martin
parent 7b24028437
commit 436af15d63
5 changed files with 8 additions and 12 deletions

View File

@ -272,9 +272,6 @@ export class NumberWrapper {
throw new Error('Invalid integer literal when parsing ' + text + ' in base ' + radix);
}
// TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.
static parseFloat(text: string): number { return parseFloat(text); }
static get NaN(): number { return NaN; }
static isNumeric(value: any): boolean { return !isNaN(value - parseFloat(value)); }