JavaScript:实现获得第 N 个卢卡斯数算法
function lucas (index) {
// index can't be negative
if (index < 0) throw new TypeError('Index
function lucas (index) {
// index can't be negative
if (index < 0) throw new TypeError('Index