• Splits a multiline string into an array of lines

    Example

    'This\nis a\nmultiline\nstring.\n'.lines(); // ['This', 'is a', 'multiline', 'string.' , '']
    

    Parameters

    • str: string

    Returns string[]

Generated using TypeDoc