Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

dividing a number into digits typescript

export const parseDigit = (str: string | number) => {
  return str.toString().replace(/B(?=(d{3})+(?!d))/g, ' ')
}
 
PREVIOUS NEXT
Tagged: #dividing #number #digits #typescript
ADD COMMENT
Topic
Name
8+8 =