命名
Boolean值命名最好是 has, is 開頭
// bad
let called = false
// good
let hasBeenCalled = falsefor 裡的 argument
Argument
Naming
function
fn
Last updated
Was this helpful?
Boolean 值命名最好是 has, is 開頭
// bad
let called = false
// good
let hasBeenCalled = falsefunction
fn
Last updated
Was this helpful?