单项选择题

给定一个数组,var arr = [3,4,2,5,6], 以下哪段代码能快速获取其中的最小值?()

A.Math.max(arr)
B.Math.min(arr)
C.Math.max(...arr)
D.Math.min(...arr)