How to use the toNumber function from underscore.string

Find comprehensive JavaScript underscore.string.toNumber code examples handpicked from public code repositorys.

283
284
285
286
287
288
289
290
291
292
    HawtioBackend.log.debug("requesting hostname: ", hostname);
    next();
});
proxyRouter.param('port', function (req, res, next, port) {
    HawtioBackend.log.debug("requesting port: ", port);
    var portNumber = s.toNumber(port);
    HawtioBackend.log.debug("parsed port number: ", portNumber);
    if (isNaN(portNumber)) {
        res.status(406).send('Invalid port number: "' + port + '"');
    }
fork icon3
star icon2
watch icon0

+ 3 other calls in file