Add ts.isNaN(value) method