-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Description
Input
The code looked like this before beautification:
class Even {
static [Symbol.hasInstance](num) {
return Number(num) % 2 == 1
}
}
console.log("123" instanceof Even) // true
console.log("1230" instanceof Even) // falseExpected Output
The code should have looked like this after beautification:
class Even {
static [Symbol.hasInstance](num) {
return Number(num) % 2 == 1
}
}
console.log("123" instanceof Even) // true
console.log("1230" instanceof Even) // falseActual Output
The code actually looked like this after beautification:
class Even {
static[Symbol.hasInstance](num) {
return Number(num) % 2 == 1
}
}
console.log("123"
instanceof Even) // true
console.log("1230"
instanceof Even) // falseSteps to Reproduce
Environment
OS: windows / web / mdformat-web
Metadata
Metadata
Assignees
Labels
No labels