1.isNaN():短所: null、スペース、空の文字列は0として扱われます
2.typeof():短所: typeof(NaN)も数値と等しい
所以:typeof value === 'number' &&!isNaN(value);