popfun (npm): pop array, if last element is function
Keywords: pop|callback|array