Skip to content

Commit d98025a

Browse files
committed
chore(*): use instanceOf Date for type check #8350
1 parent 2d8d33c commit d98025a

File tree

1 file changed

+1
-1
lines changed
  • projects/igniteui-angular/src/lib/core

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/core/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function isObject(value: any): boolean {
9999
* @hidden
100100
*/
101101
export function isDate(value: any): boolean {
102-
return Object.prototype.toString.call(value) === '[object Date]';
102+
return value instanceof Date;
103103
}
104104

105105
/**

0 commit comments

Comments
 (0)