UNPKG
@fallen-zero/use
Version:
latest (1.2.14)
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.2
1.0.1
1.0.0
fallen-zero Api
github.com/about-npm/fallen-zero-use
about-npm/fallen-zero-use
@fallen-zero/use
/
dist
/
strToArray
/
index.d.ts
12 lines
(11 loc)
•
260 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** * 字符串转数组 *
@param
str 字符串 *
@param
separator 分割符 *
@returns
数组 *
@example
* strToArray('1,2,3,4') * => * [1, 2, 3, 4] */
export
declare
function
strToArray
(
str
:
string
|
null
|
undefined
,
separator
?:
string
):
string
[];