index.js
function split (splitBy, string) {
  return (typeof splitBy === 'function')
  ? predicate(splitBy, string)
  : string.split(splitBy)
}
function split (splitBy, string) {
  return (typeof splitBy === 'function')
  ? predicate(splitBy, string)
  : string.split(splitBy)
}
function split ( splitBy , string ) { return ( typeof splitBy === 'function' ) ? predicate ( splitBy , string ) : string . split ( splitBy ) }
A curried `String.prototype.split` with support
for splitting by String, RegExp, or Function.

@param {String|RegExp|Function} splitBy
String, RegExp, or Function to split by.

@param {String} string
String to split.

@return {Array}
List of split string parts.
A curried String . prototype . split with support for splitting by String RegExp or Function .