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

Version Path
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/mout/src/lang/isFinite.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/mout/src/lang/isFinite.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/mout/src/lang/isFinite.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/mout/src/lang/isFinite.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/mout/src/lang/isFinite.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/mout/src/lang/isFinite.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/mout/src/lang/isFinite.js