UNPKG

number.parsefloat

Version:

An ES-spec-compliant Number.parseFloat shim/polyfill/replacement that works as far down as ES3

11 lines (8 loc) 201 B
/* eslint-disable max-lines-per-function */ 'use strict'; module.exports = function (parseFloat, t) { t.test('should work', function (st) { st.equal(parseFloat('3.14'), 3.14); st.end(); }); };