UNPKG

qsu

Version:

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

1 lines 157 B
export function sum(...t){const e=t.length>0&&"object"==typeof t[0]?t[0]:t;let n=0;for(let t=0,o=e.length;t<o;t+=1)"number"==typeof e[t]&&(n+=e[t]);return n}