es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

sum() should allow bigint

Open woody146 opened this issue 1 year ago • 4 comments

Currently, sum() only accepts number array. Sum with bigint array will throw type error

woody146 avatar Oct 23 '24 08:10 woody146

Are you referring to making it possible to add a number and a bigint together? Or are you talking about creating a way to sum an array containing only bigints?

dayongkr avatar Oct 25 '24 13:10 dayongkr

Are you referring to making it possible to add a number and a bigint together? Or are you talking about creating a way to sum an array containing only bigints?

I talk about array of only bigint

woody146 avatar Oct 25 '24 14:10 woody146

Maybe this should be implemented in the compat layer

D-Sketon avatar Oct 25 '24 14:10 D-Sketon

I think this issue should be closed because of resolved issue.

skiende74 avatar Jan 30 '25 10:01 skiende74