Open twy30 opened 4 years ago
javascript, nodejs 開發者表示:「會是 <= 2011」
;[2012, 2011, 2010].filter(year => year <= 2011) // [2011, 2010]
然後 javascript, nodejs 開發者看到 ;[2012,2011,2010,null,undefined].filter(Boolean)
心裡又想 WTF?
@LPenny-github 這讓我想到,
where
。select
事實上比較接近 "transformation" 😅
有些字帶有兩種正好相反的意思,如果缺少脈絡、註解、提示,容易造成誤解。
偶然看到的例子,或許可以參考?(書籍的格式比較好閱讀,所以以截圖的方式呈現 😅)
from 《The Art of Readable Code》