'use strict';module.exports=(string,separator)=>{if(!(typeofstring==='string'&&typeofseparator==='string')){thrownewTypeError('Expected the arguments to be of type `string`');}if(separator===''){return[string];}constseparatorIndex=string.indexOf(separator);if(separatorIndex===-1){return[string];}return[string.slice(0,separatorIndex),string.slice(separatorIndex+separator.length)];};