MCPcopy Index your code
hub / github.com/csev/py4e / addParseToken

Function addParseToken

code/gmane/Chart.bundle.js:2152–2165  ·  view source on GitHub ↗
(token, callback)

Source from the content-addressed store, hash-verified

2150 var tokens = {};
2151
2152 function addParseToken (token, callback) {
2153 var i, func = callback;
2154 if (typeof token === 'string') {
2155 token = [token];
2156 }
2157 if (typeof callback === 'number') {
2158 func = function (input, array) {
2159 array[callback] = toInt(input);
2160 };
2161 }
2162 for (i = 0; i < token.length; i++) {
2163 tokens[token[i]] = func;
2164 }
2165 }
2166
2167 function addWeekParseToken (token, callback) {
2168 addParseToken(token, function (input, array, config, token) {

Callers 2

addWeekParseTokenFunction · 0.85
Chart.bundle.jsFile · 0.85

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected