leetcode-8Jan 22, 2019 leetcode leetcode stringhttps://leetcode.com/problems/string-to-integer-atoi/ 1234567/** * @param {string} str * @return {number} */var myAtoi = function(str) { return Math.max(Math.min(parseInt(str, 10) || 0, 2147483647), -2147483648);};