Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一种优雅的内置(函数式)方式来选择NJavascript 数组中的最后一个成员?
N
它很简单:
list.slice( -N );