I have an array from strings and numbers. I need to sort the numbers or better to extract only the numbers in another array. Here is the example:
const myArr = ['Prihodi 23456 danaci 34 razhodi 23455 I drugi.']
I need to make it like this
const filtered = [23456, 34, 23455]
I used split(' ') method to separate them with comma but don't know how to filter them for JS they all are strings.