create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
59 lines (31 loc) • 1.09 kB
Markdown
string on the first occurrence of a given separator
This is similar to [`String
```
$ npm install split-on-first
```
```js
const splitOnFirst = require('split-on-first');
splitOnFirst('a-b-c', '-');
//=> ['a', 'b-c']
splitOnFirst('key:value:value2', ':');
//=> ['key', 'value:value2']
splitOnFirst('a---b---c', '---');
//=> ['a', 'b---c']
splitOnFirst('a-b-c', '+');
//=> ['a-b-c']
```
Type: `string`
The string to split.
Type: `string`
The separator to split on.
- [split-at](https://github.com/sindresorhus/split-at) - Split a string at one or more indices
MIT © [Sindre Sorhus](https://sindresorhus.com)
> Split a