Skip to content

Commit

Permalink
fix: change isFinite reference to reference window NOT Number
Browse files Browse the repository at this point in the history
  • Loading branch information
devonChurch committed Jun 4, 2018
1 parent 09c55bc commit e8468f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
declare const foo: string;
declare const init: (unit: string, sizes: any) => string;
export default init;
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ const testIsUnitRelevant = (unit: string): boolean => {
};

const testIsValueRelevant = (value: number, reference: string): boolean => {
const { isNaN, isFinite } = Number;
const isNotValue = !value;
const isNotNumber = value && !(typeof value === 'number');
const isNotFinite = !isNotNumber && !isFinite(value);
Expand Down

0 comments on commit e8468f0

Please sign in to comment.