05.06.2017 - A closer look at the X Is Not a Function TypeError within JavaScript, including a handful of functional code examples for illustration. Product · Pricing · Languages · Enterprise · Blog · Docs · Sign In . if (e instanceof TypeError) { . Thankfully, we can simply use the Array.prototype.concat() method to take .