split

Alias to split function.

Install

Install all functions of strman

yarn add strman

or just the split function

yarn add strman.split

Usage

import { split } from 'strman'
// OR
import split from 'strman.split'
Parameters:
Name Type Description
value String

The String!

separator String

Split separator.

limit Number

Split limit.

Source:
Returns:

The String splited!

Type
String
Example
split('strman', '')
// => ['s', 't', 'r', 'm', 'a', 'n']