Used isEqual instead of ===