Skip to content

Commit

Permalink
actually fixed str->num for input data
Browse files Browse the repository at this point in the history
  • Loading branch information
dpalay committed Sep 20, 2019
1 parent af65f3f commit f81daf1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
14 changes: 12 additions & 2 deletions bin/tmp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/tmp.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions tmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,17 @@ let data: {
};
"image": string;}[]

//@ts-ignore
data = strData

data = strData.map(datum => { return {
guid: datum.guid,
title: datum.title,
link: datum.link,
image: datum.image,
coordinates: {
lat: +datum.coordinates.lat,
lng: +datum.coordinates.lng
}
}})

//init output
let output: {
Expand Down
2 changes: 1 addition & 1 deletion tmpoutput.json

Large diffs are not rendered by default.

0 comments on commit f81daf1

Please sign in to comment.