TypeScript
TypeScript copied to clipboard
Added support for negative numbers in digit_sum()
The function digit_sum() check if the number provided is integer or not. if not then check if the number is negative or not. if negative then make it positive and proceed for the sum.