MCPcopy Index your code
hub / github.com/toddmotto/echo / optionToInt

Function optionToInt

src/echo.js:50–52  ·  view source on GitHub ↗
(opt, fallback)

Source from the content-addressed store, hash-verified

48 var offsetVertical = opts.offsetVertical || offsetAll;
49 var offsetHorizontal = opts.offsetHorizontal || offsetAll;
50 var optionToInt = function (opt, fallback) {
51 return parseInt(opt || fallback, 10);
52 };
53 offset = {
54 t: optionToInt(opts.offsetTop, offsetVertical),
55 b: optionToInt(opts.offsetBottom, offsetVertical),

Callers 1

echo.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected