From 4098a8cc4404f90230b791bd5d0cd59961c8fe68 Mon Sep 17 00:00:00 2001 From: Matthew Podwysocki Date: Sun, 15 Oct 2017 00:24:15 -0400 Subject: [PATCH] fix(comparer): fixes bug with comparer Fixes the bug with the comparer --- src/internal/comparer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/comparer.ts b/src/internal/comparer.ts index b85259ab..3748e98d 100644 --- a/src/internal/comparer.ts +++ b/src/internal/comparer.ts @@ -2,13 +2,13 @@ /** * @ignore */ -export function comparer(a: any, b: any) { +export function comparer(x: any, y: any) { return x === y || (typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y)); } /** * @ignore */ -export async function comparerAsync(a: any, b: any) { +export async function comparerAsync(x: any, y: any) { return x === y || (typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y)); }