Comment Comment by itishappy NonEmpty is a type that allows you to distinguish between: a = [undefined]; res = a.pop() // undefined a = []; res = a.pop() // undefined parent itishappy 1 month ago