string-lines is an autoloaded compiled Lisp function in ‘subr-x.el’.
(string-lines STRING &optional OMIT-NULLS)
Other relevant functions are documented in the string group. Probably introduced at or before Emacs version 28.1.
Split STRING into a list of lines. If OMIT-NULLS, empty lines will be removed from the results.