This week's book giveaway is in the NodeJS forum. We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line! See this thread for details.
Well, there you go then. There's nothing which calls that method so you shouldn't be surprised that it never gets run and never prints anything. (Not that it would print anything even if it did get run.)
Perhaps there's something else that you didn't tell us about? Some framework which somebody else is going to use to run your code, perhaps?
I haven't replicated the code but I think that the method is not using custArray properly, please have a look at this code, it is using custArray;
On the other hand, you need to have a class called Customer with a member "ID". Then in order to call the method "searchCustomerByID" maybe the best is to write a run method as explained on this https://coderanch.com/wiki/660020/Main-Pain post.
I prefer to focus on the impossible, because about the possible we already know too much.
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
global solutions you can do in your home or backyard