Ad
  • Custom User Avatar

    If the input array is empty or null, return an empty array.

    Pretty sure null has no length property. ;)

    The right error message you should be seeing is this:

    TypeError: Cannot read property 'length' of null