Sha256: c29b054b3a4cc1c85798abca97cb2c41c658b8984e7bf6a154d8c0186964e93e
Contents?: true
Size: 480 Bytes
Versions: 7
Compression:
Stored size: 480 Bytes
Contents
define(['./isNumber'], function (isNumber) { var global = this; /** * Check if value is finite */ function isFinite(val){ var is = false; if (typeof val === 'string' && val !== '') { is = global.isFinite( parseFloat(val) ); } else if (isNumber(val)){ // need to use isNumber because of Number constructor is = global.isFinite( val ); } return is; } return isFinite; });
Version data entries
7 entries across 7 versions & 1 rubygems