brandonmp / gatsby-source-google-sheets

A GatsbyJS plugin that pulls nodes from rows in a Google Sheet.
90 stars 32 forks source link

fix number check with isNaN #40

Closed pedrosousa13 closed 4 years ago

pedrosousa13 commented 4 years ago

This is a more predictable way of checking for numbers. For example I need a date, I have the date as string for example 10.11.12, and this way it was setting this value to none because it checked for the existance of . characters.

This way all true strings are preserved.