These are my mistakes that VSC writes.

```
if (array.some(typeof item !== 'number') || !(intNumber)) {
          ^

TypeError: true is not a function
    at Array.some (<anonymous>)
    at addNumber (D:\ИРИТ-РТФ\3 курс\Тинькофф\1 ЛАБА 2 попытка\rtf-lab-1-master\index.js:7:15)
    at Object.<anonymous> (D:\ИРИТ-РТФ\3 курс\Тинькофф\1 ЛАБА 2 попытка\rtf-lab-1-master\index.js:14:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)

```

```js
function toArray() {
    return [...arguments];
}

function addNumber(array, number) {
    let intNumber = (number >= 0 && number <= 9) ? Number.isInteger(number) : false;
    if (array.some(typeof item !== 'number') || !(intNumber)) {
        return null;
    }

    const stringArray = array.map(parseInt) + number;
    return toArray(stringArray);
}
console.log(addNumber([1, 0, 9], 2));
console.log(addNumber([2, 5, 1], 5));
console.log(addNumber([1], 4020));
console.log(addNumber([1, '4'], 1));
console.log(addNumber([1, 2, 4], 1));
console.log(addNumber([0], 900));
console.log(addNumber([7, 1, 7, 7, 1], 1248));
console.log(addNumber([0], 0));
console.log(addNumber([0, '4'], 11));
console.log(addNumber([null], 125));
```