MCPcopy
hub / github.com/eggjs/examples / parseInt

Function parseInt

sequelize/app/extend/helper.js:4–8  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

2
3module.exports = {
4 parseInt(string) {
5 if (typeof string === 'number') return string;
6 if (!string) return string;
7 return parseInt(string) || 0;
8 },
9};

Callers 6

fetchFunction · 0.50
listMethod · 0.50
listMethod · 0.50
listMethod · 0.50
listMethod · 0.50
listMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected