string-replace-to-array

Works like String.prototype.replace but outputs an array. Useful for replacing parts of the string with objects of other types.

Browse on unpkg