feige
2025-01-06 5416279140524175b03a4d45c0ed85341e90d6eb
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
 
function tryParseInt(input) {
  const output = parseInt(input, 10);
 
  if (Number.isNaN(output)) {
    return null;
  }
 
  return output;
}
 
module.exports = tryParseInt;