UNPKG
expeditaet
Version:
latest (1.2.0)
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Advent of Code Solutions
github.com/MariannaBoyle/expeditaet.git
MariannaBoyle/expeditaet
expeditaet
/
solutions
/
typescript
/
2019
/
16
/
src
/
parse.ts
4 lines
(3 loc)
•
141 B
text/typescript
View Raw
1
2
3
4
export
const
parse = (
input
:
string
):
number
[] => {
return
[...input].
filter
(
(
c
) =>
/^\d+$/
.
test
(c)).
map
(
(
a
) =>
Number
.
parseInt
(a,
10
)); };