Prime factors Kata in Typescript

note (spanish): si te gusta este repo te recomiendo hacer el curso https://testingsostenible.com

Kata requirements:

Obtain prime numbers of a number. Examples:

2 ⇒ [2] 2 * 2 ⇒ [2,2] 2 * 2 * 2 ⇒ [2,2,2] 3 ⇒ [3] 3 * 3 ⇒ [3,3] 3 * 2 ⇒ [2,3] 5 * 5 ⇒ [5,5] 5 * 7 * 11 * 3 ⇒ [3,5,7,11]