Share your code. Components are building blocks, you are the architect.

utils/split
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Splits a string into an array of strings based on the given

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/split in your project
npm i @bit/bit.ramda.utils.split
Copied

split (sep:(String | RegExp), str:String) : Array

Splits a string into an array of strings based on the given separator.

Example

var pathComponents = R.split('/');
     R.tail(pathComponents('/usr/local/bin/node')); //=> ['usr', 'local', 'bin', 'node']

     R.split('.', 'a.b.c.xyz.d'); //=> ['a', 'b', 'c', 'xyz', 'd']

Arguments

sep: (String | RegExp)

The pattern.

str: String

The string to separate into an array.

Returns

Array

The array of strings from `str` separated by `str`.