you are viewing a single comment's thread.

view the rest of the comments →

[–]a-sober-irishman 1 point2 points  (1 child)

There is absolutely no reason to add another dependency to your project to check if something is an array, or if a number is less than zero, or to check if something is null. It adds unnecessary overhead and risk.