MCPcopy
hub / github.com/alsotang/node-lessons / int1

Function int1

lesson10/main.js:5–7  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3var suite = new Benchmark.Suite;
4
5var int1 = function (str) {
6 return +str;
7};
8
9var int2 = function (str) {
10 return parseInt(str, 10);

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected