JavaScript simple solution
Runtime: 52 ms, faster than 81.75% of JavaScript online submissions for Plus One.\nMemory Usage: 33.8 MB, less than 55.32% of JavaScript online submissions for 
Runtime: 52 ms, faster than 81.75% of JavaScript online submissions for Plus One.\nMemory Usage: 33.8 MB, less than 55.32% of JavaScript online submissions for Plus One.\n```\nfunction plusOne(digits) {\n  let co = true;\n  for (let i = digits.length - 1; i >= 0 && co; i--) {\n    digits[i]++;\n    co = digits[i] >= 10;\n    co && (digits[i] = 0);\n  }\n  co && digits.unshift(1);\n  return digits;\n}\n```
[]