UNPKG
linvail
Version:
latest (7.11.0)
7.11.0
7.10.1
7.10.0
7.9.2
7.9.1
7.9.0
7.8.3
7.8.2
7.8.1
7.8.0
7.7.9
7.7.8
7.7.7
7.7.6
7.7.5
7.7.4
7.7.3
7.7.2
7.7.1
7.7.0
7.6.6
7.6.5
7.6.4
7.6.3
7.6.2
7.6.1
7.6.0
7.5.0
7.4.0
7.3.0
7.2.6
7.2.5
7.2.4
7.2.3
7.2.2
7.2.1
7.1.1
7.0.1
7.0.0
6.0.12
6.0.11
6.0.10
6.0.9
6.0.8
6.0.7
6.0.6
6.0.5
6.0.4
6.0.3
6.0.2
6.0.1
6.0.0
5.0.1
5.0.0
4.1.0
4.0.2
4.0.1
4.0.0
3.0.1
3.0.0
2.0.14
2.0.13
2.0.12
2.0.11
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.2
0.0.0
Provenancial Equality for JavaScript
github.com/lachrist/linvail
lachrist/linvail
linvail
/
lib
/
util
/
string.mjs
16 lines
(14 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const
{
Reflect
: { apply },
String
: {
prototype
: {
split
: splitString }, }, } = globalThis;
/** *
@type
{
( * target: string, * separator: string, * ) => string[]
} */
export
const
split
= (
target, separator
) =>
apply
(splitString, target, [separator]);