UNPKG
@dragondyt/vuepress-plugin-abbrlink
Version:
latest (0.0.2-beta.0)
next (1.0.1-beta.10)
1.0.1-beta.10
1.0.1-beta.9
1.0.1-beta.8
1.0.1-beta.7
1.0.1-beta.6
1.0.1-beta.5
1.0.1-beta.4
1.0.1-beta.3
1.0.1-beta.2
1.0.1-beta.1
1.0.1-beta.0
0.0.2-beta.0
VuePress plugin - abbrLink
github.com/dragondyt/vuepress
dragondyt/vuepress
@dragondyt/vuepress-plugin-abbrlink
/
lib
/
node
/
check.js
14 lines
(13 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
crcRes =
new
Array
();
export
const
check =
function
(
res
) {
if
(crcRes.
indexOf
(res) > -
1
) { res++;
return
check
(res); }
else
{
return
res; } };
export
const
add =
function
(
value
) { crcRes.
push
(value); };